Permissive List of Allowed Inputs in DOMPurify - CVE-2026-41240

 

Permissive List of Allowed Inputs in DOMPurify - CVE-2026-41240

Published: April 20, 2026


Vulnerability identifier: #VU126561
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-41240
CWE-ID: CWE-183
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Cure53
Affected software:
DOMPurify

Detailed vulnerability description

The vulnerability allows a remote user to inject forbidden elements into sanitized output.

The vulnerability exists due to a permissive list of allowed inputs in tag filtering logic when sanitizing content with a function-based ADD_TAGS predicate and FORBID_TAGS configured. A remote user can supply crafted markup that uses forbidden tags to inject forbidden elements into sanitized output.

Only configurations that use a function-based ADD_TAGS predicate are vulnerable.


How to mitigate CVE-2026-41240

Install security update from vendor's website.

Sources