Vulnerability
CVE-2026-41240
DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Versions prior to 3.4.0 have an inconsistency between FORBID_TAGS and FORBID_ATTR handling when function-based ADD_TAGS is used. Commit c361baa added an early exit for FORBID_ATTR at line 1214. The same fix was not applied to FORBID_TAGS. At line 1118-1123, when EXTRA_ELEMENT_HANDLING.tagCheck returns true, the short-circuit evaluation skips the FORBID_TAGS check entirely. This allows forbidden elements to survive sanitization with their attributes intact. Version 3.4.0 patches the issue.
83 advisories report this vulnerability, across 7 ecosystems.
Advisories
- CGA-25pw-5crf-h9pm
- CGA-26qr-5m2v-jhr9
- CGA-2fjm-28f6-cpxh
- CGA-2jf5-6vc6-hpph
- CGA-32mp-xc2f-w5wj
- CGA-3588-gpjw-9cfr
- CGA-36f5-vw59-hw93
- CGA-3849-qrcj-3mvc
- CGA-47fq-w33f-4gpf
- CGA-4f27-7cqp-jh9j
- CGA-4gcj-x2gv-2v65
- CGA-4h87-jp5w-jr86
- CGA-4xrg-hmfx-j8c5
- CGA-548h-4m3v-6fp8
- CGA-5crc-fmcq-hf6w
- CGA-6cvp-6mx8-92rr
- CGA-6hxf-9gwg-rqwh
- CGA-6jvr-xgwq-vr2q
- CGA-6v79-4r3f-3gf8
- CGA-75xj-j2rr-xv87
- CGA-78xx-fhgm-xrc5
- CGA-7g7c-8x6f-rrp8
- CGA-7j4p-3mrg-wgj5
- CGA-83hm-qf3q-4q9p
- CGA-8wv9-27mf-rhrx
- CGA-9f29-gvwf-f7wv
- CGA-9f35-gjvh-pw2w
- CGA-9g7h-qj9p-4pgw
- CGA-9jgh-3wpc-79jq
- CGA-c54p-h445-82wp
- CGA-c7mp-r4v7-pp7x
- CGA-c86q-pvmj-823x
- CGA-cc77-8qv3-m6r4
- CGA-chgm-mh36-522q
- CGA-cqc9-7vvx-3pf8
- CGA-f85x-333x-8vj6
- CGA-fjrf-vq4p-x7hq
- CGA-fxqg-p8xf-h237
- CGA-g22m-j59r-m8c9
- CGA-g5jc-4889-fhgq
- CGA-g72r-6p9g-g4gr
- CGA-g8gq-j3gj-vxgf
- CGA-gjqf-9rvm-p46w
- CGA-gpch-839g-crfc
- CGA-gqmh-6c2f-h3qj
- CGA-gx2w-cpjp-322g
- CGA-h723-p7g7-93m6
- CGA-hcfv-p278-h938
- CGA-hhh6-jhwq-j636
- CGA-j4cc-g2cp-82w6
- CGA-jf7g-7m42-vv5p
- CGA-jqxf-f5wq-g3h6
- CGA-jw8c-prc8-cx2c
- CGA-m2vg-vv3h-rj5v
- CGA-m8jp-8jh3-h9pj
- CGA-mmgm-q4mf-wgpq
- CGA-mv67-gp89-5gh4
- CGA-mx29-62f7-cj94
- CGA-pmwc-38f4-wh7x
- CGA-pqp6-35q7-w677
- CGA-pqxx-cw5q-mxj5
- CGA-pw7f-2p6w-vgjr
- CGA-pxq8-m7h8-6237
- CGA-q5j5-6m22-cwfq
- CGA-q95v-g962-9wf2
- CGA-r2c4-rj4p-c5v2
- CGA-rhh3-h3cg-62gc
- CGA-rrv7-mc67-f6ww
- CGA-v48x-p3f9-7m79
- CGA-v54q-wmcm-j2xg
- CGA-v994-v4pf-rcqw
- CGA-vc2w-6w2m-qqcp
- CGA-vgh4-89x8-93cj
- CGA-vrh6-9mh3-4h7c
- CGA-w5vv-xp8f-mx65
- CGA-wj9j-8cm2-rfqx
- CGA-xc75-x7jq-w7cg
- CGA-xfvj-44mx-f38p
-
DEBIAN-CVE-2026-41240
DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Versions prior to 3.4.0 have an inconsistency between FORBID_TAGS and FORBID_ATTR handling when function-based ADD_TAGS is used. Commit…
-
GHSA-h7mw-gpvr-xq4m
DOMPurify: FORBID_TAGS bypassed by function-based ADD_TAGS predicate (asymmetry with FORBID_ATTR fix)
-
RHSA-2026:34160
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Product Security and Bug Fix Update
-
UBUNTU-CVE-2026-41240
DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Versions prior to 3.4.0 have an inconsistency between FORBID_TAGS and FORBID_ATTR handling when function-based ADD_TAGS is used. Commit…
-
openSUSE-SU-2026:10888-1
argocd-cli-3.4.3-1.1 on GA media