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
- CGA-2292-g776-gg42
- CGA-22f8-v7gc-mjrp
- CGA-25c8-v3pv-6j4m
- CGA-263v-q357-mcmj
- CGA-2666-cwfh-285p
- CGA-26xx-45vf-x7g4
- CGA-2hh7-f9qh-7xg7
- CGA-2m72-7f3c-j9wv
- CGA-2phx-rmhg-r96f
- CGA-2r24-4cwg-55rc
- CGA-2w5q-xq5r-6jx3
- CGA-2xjf-fjhw-h5cw
- CGA-2xrc-4m58-j7p6
- CGA-33f5-cg8v-w5f3
- CGA-374j-g2rw-pcp3
- CGA-39pm-q9mg-m34g
- CGA-3cfg-62jx-7jjf
- CGA-3cmh-cvh7-3qw3
- CGA-3g45-3qcp-55c9
- CGA-3g5f-6r9c-jxp2
- CGA-3jf7-rpf8-xm8h
- CGA-3rgp-496c-9r6g
- CGA-44cf-25hw-h5r2
- CGA-44hr-p2fp-5jjv
- CGA-44ph-xgjc-3w6v
- CGA-49p4-mgpr-8r92
- CGA-4cw5-rghp-r57x
- CGA-4fr3-7834-vgxr
- CGA-4p6p-gq5f-fpj9
- CGA-4q99-xrm7-x65r
- CGA-4vjg-3j9w-rqqr
- CGA-587v-83cg-gj4m
- CGA-58xw-3xg3-7g77
- CGA-5932-ff9g-wf57
- CGA-5h3x-7mq8-3h32
- CGA-5hfp-6m38-vfgh
- CGA-5qmx-rq67-m8q6
- CGA-6356-2cmj-vc64
- CGA-65mx-rqhq-q86r
- CGA-668x-5g99-wjrp
- CGA-66c4-wqj3-cx3j
- CGA-688x-wx73-v358
- CGA-6gm4-f5fm-hpw6
- CGA-6hw9-f92f-5vpc
- CGA-6p98-qmq5-4m58
- CGA-734h-gmm7-35g5
- CGA-73hx-85hw-xc59
- CGA-757w-4prp-3hx3
- CGA-75cj-4h45-85h3
- CGA-76m5-3crv-966h
- CGA-7h23-4r72-gp8c
- CGA-7hj2-g5cv-24gm
- CGA-7p6v-jvch-g9xx
- CGA-7rxx-j2gg-7jg9
- CGA-7wmr-q6hg-278p
- CGA-7x85-542h-2qr5
- CGA-8462-75x8-3ffw
- CGA-87v5-2pxh-wrmw
- CGA-8chr-gq5f-m4pr
- CGA-8jxw-mxpg-8v74
- CGA-8mxx-vc7v-f34r
- CGA-8qj6-8892-h7gx
- CGA-8qxx-fqc2-x2c2
- CGA-8v2p-cwpq-hg86
- CGA-923c-59c7-6753
- CGA-924v-jwjp-qmg4
- CGA-938p-425w-p5j4
- CGA-95rh-7m4m-vx97
- CGA-97mm-4x96-wxvw
- CGA-9825-j538-5q2h
- CGA-9f98-2m22-3q26
- CGA-9hfq-mwhj-8xc2
- CGA-9hx9-xfvq-4q96
- CGA-9jw7-pw2r-hghp
- CGA-9mgq-cj37-f7g7
- CGA-9x55-6fwc-8m83
- CGA-c2fj-4m8r-fxgf
- CGA-c4f4-r235-83wr
- CGA-cc9x-9cw4-4538
- CGA-cf9v-gp7r-gv3m
- CGA-cg9r-rw37-jx7x
- CGA-ch36-7qr6-9gj7
- CGA-cp4w-2gm5-rpwq
- CGA-cpg9-8qpc-2hhf
- CGA-cr62-jpjp-pgr3
- CGA-crqf-47hv-h6w8
- CGA-crvv-vgmj-6f52
- CGA-crwf-vvr2-j2pj
- CGA-cvwp-w522-mhj3
- CGA-cwr5-7q3r-vwrm
- CGA-f623-p2f3-c7c2
- CGA-fc5w-pqrr-v68m
- CGA-fghj-mpg8-hxgj
- CGA-fqm4-c855-2rc2
- CGA-frcq-2625-m6p6
- CGA-frqj-5j2x-7xr8
- CGA-fvh5-3w86-rhc2
- CGA-fvxc-c5q6-729m
- CGA-g35c-j4rq-3ppg
- CGA-g4qp-3j6g-cr3m
Showing the first 100. The API lists them all: /api/v1/vulnerabilities/CVE-2026-0540.
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