Vulnerability
CVE-2026-41238
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.
82 advisories report this vulnerability, across 6 ecosystems.
Advisories
- CGA-243w-fcwr-v557
- CGA-2ff9-27jf-9mw5
- CGA-2h8w-5fhh-m73x
- CGA-2q8x-x2fv-v59h
- CGA-3x37-wc47-x735
- CGA-426f-3fj4-5gwp
- CGA-47g2-62f8-qprw
- CGA-4gw3-w68r-7rjp
- CGA-4rvg-x5wm-67h6
- CGA-5428-5wcm-3wrc
- CGA-58xw-2fc4-7rf6
- CGA-5c33-4php-54h9
- CGA-5r48-pjxr-xx87
- CGA-5x38-x9fm-7c9p
- CGA-62rc-8ccq-q823
- CGA-65x6-hr33-wwq2
- CGA-6c6r-9gpr-mqjr
- CGA-6cx9-gvwh-g3pm
- CGA-6f6g-mmh3-hvg8
- CGA-6gm9-qj3r-gmmv
- CGA-6pf9-8ghj-wh6x
- CGA-6q62-f5pv-246q
- CGA-6vcp-2jwm-88wh
- CGA-6xfx-p3gm-8h62
- CGA-7294-mqcc-3984
- CGA-72wc-56hh-gpj5
- CGA-753g-gwhw-4432
- CGA-79xq-24p6-8cpm
- CGA-8jqh-62rw-rwc3
- CGA-92f8-gwh3-8gw4
- CGA-9j3q-3rcw-p4jf
- CGA-c7x3-mgh4-q56p
- CGA-cjhj-9gfm-rc5p
- CGA-cq8p-cvww-6cjx
- CGA-crv6-qvgg-f938
- CGA-cx9p-xpjp-9xpx
- CGA-f5q5-h844-9mgf
- CGA-fv8g-ggcm-hx7m
- CGA-g23p-2326-jmwj
- CGA-g327-35pj-m5qp
- CGA-g874-x9r8-669p
- CGA-gmw2-79jq-h6v7
- CGA-gqr8-mxrx-w223
- CGA-gw77-4xqc-36qm
- CGA-hf26-2g56-fwxj
- CGA-hw77-4jm7-c23p
- CGA-jf6j-j4v5-m248
- CGA-jgmf-9fh9-g4v2
- CGA-jwc3-g9j2-36pm
- CGA-mc5p-x8mh-h8hm
- CGA-mfgq-5hqv-9fcf
- CGA-mvp3-jc86-ggrv
- CGA-p22r-2fm4-pg89
- CGA-p3v3-3g2g-v9r4
- CGA-p8q3-6pcc-4rq7
- CGA-pmmh-7v59-35ch
- CGA-ppw2-v479-97g3
- CGA-pxhv-8hc9-jprf
- CGA-pxjv-j4wr-35rq
- CGA-qfh8-c43q-9pgg
- CGA-qjcp-mvhx-7wq6
- CGA-qw26-hr47-h3qg
- CGA-r23m-455x-4x9q
- CGA-r2g9-3734-hrjx
- CGA-r3wp-j9hv-v8mh
- CGA-rpcv-xw2h-hqw9
- CGA-v3g7-qrc2-4ffw
- CGA-v4x2-838f-hf95
- CGA-vf9c-m9m6-h2q7
- CGA-w567-3pc6-m63h
- CGA-wg48-r2vx-pg7f
- CGA-whqg-x8wr-hxx8
- CGA-x3f4-9gwp-vvgp
- CGA-x68w-9hx8-m3h8
- CGA-xcq8-mf98-h82v
- CGA-xhhw-8h4c-hpv7
- CGA-xjcj-627p-6pjq
- CGA-xjgp-5882-gmpw
-
DEBIAN-CVE-2026-41238
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()`…
-
GHSA-v9jr-rg53-9pgp
DOMPurify: Prototype Pollution to XSS Bypass via CUSTOM_ELEMENT_HANDLING Fallback
-
RHVEX-CVE-2026-41238
DOMPurify: DOMPurify: Cross-Site Scripting bypass via prototype pollution
-
UBUNTU-CVE-2026-41238
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()`…