CVE-2026-41238
MEDIUM 6.9CVSS 3.1DOMPurify: Prototype Pollution to XSS Bypass via CUSTOM_ELEMENT_HANDLING Fallback
DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Versions 3.0.1 through 3.3.3 are vulnerable to a prototype pollution-based XSS bypass. When an application uses DOMPurify.sanitize() with the default configuration (no CUSTOM_ELEMENT_HANDLING option), a prior prototype pollution gadget can inject permissive tagNameCheck and attributeNameCheck regex values into Object.prototype, causing DOMPurify to allow arbitrary custom elements with arbitrary attributes — including event handlers — through sanitization. Version 3.4.0 fixes the issue.
- Published
- 23 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-1321CWE-79
- Also known as
- GHSA-v9jr-rg53-9pgp
- Sources
- NVDJSONOSV GHSA-v9jr-rg53-9pgpJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | dompurify | >= 3.0.1, < 3.4.0 | 3.4.0 |
References
- https://github.com/cure53/DOMPurify/releases/tag/3.4.0 · WEB
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-v9jr-rg53-9pgp · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-41238 · ADVISORY
- https://github.com/cure53/DOMPurify · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 23 Apr 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 22 Apr 2026)