Vulnerability
CVE-2026-0540
DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8, fixed in commit 2726c74, contain a cross-site scripting vulnerability that allows attackers to bypass attribute sanitization by exploiting five missing rawtext elements (noscript, xmp, noembed, noframes, iframe) in the SAFE_FOR_XML regex. Attackers can include payloads like </noscript><img src=x onerror=alert(1)> in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts.
189 advisories report this vulnerability, across 7 ecosystems.
Advisories in Wolfi
- CGA-3jf7-rpf8-xm8h
- CGA-44cf-25hw-h5r2
- CGA-44ph-xgjc-3w6v
- CGA-4cw5-rghp-r57x
- CGA-4vjg-3j9w-rqqr
- CGA-5h3x-7mq8-3h32
- CGA-5qmx-rq67-m8q6
- CGA-6356-2cmj-vc64
- CGA-66c4-wqj3-cx3j
- CGA-688x-wx73-v358
- CGA-7h23-4r72-gp8c
- CGA-8462-75x8-3ffw
- CGA-8jxw-mxpg-8v74
- CGA-8mxx-vc7v-f34r
- CGA-924v-jwjp-qmg4
- CGA-938p-425w-p5j4
- CGA-97mm-4x96-wxvw
- CGA-cc9x-9cw4-4538
- CGA-fc5w-pqrr-v68m
- CGA-fghj-mpg8-hxgj
- CGA-g4qp-3j6g-cr3m
- CGA-h87x-vrf7-p9h8
- CGA-hw76-mp3q-2x8g
- CGA-j3v4-pcq7-39jc
- CGA-j7vw-43gj-9f3r
- CGA-jc82-7vjj-2r6f
- CGA-jrr2-7cg2-hv4p
- CGA-r463-2f95-x3h3
- CGA-rqxm-674q-wfxp
- CGA-v67j-m5r3-6m69
- CGA-xpv3-p99j-4m46
- CGA-xvxf-g4fx-59hc
References
- https://fluidattacks.com/advisories/daft
- https://github.com/cure53/DOMPurify
- https://github.com/cure53/DOMPurify/commit/302b51de22535cc90235472c52e3401bedd46f80
- https://github.com/cure53/DOMPurify/releases/tag/3.3.2
- https://www.vulncheck.com/advisories/dompurify-xss-via-missing-rawtext-elements-in-safe-for-xml