# CVE-2026-0540: DOMPurify XSS via Missing Rawtext Elements in SAFE\_FOR\_XML

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-03-03 · Modified: 2026-03-25
- Aliases: UBUNTU-CVE-2026-0540, DEBIAN-CVE-2026-0540, 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, GHSA-v2wj-7wpq-c8vv, openSUSE-SU-2026:10599-1, 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-3rgp-496c-9r6g, CGA-44hr-p2fp-5jjv, CGA-49p4-mgpr-8r92, CGA-4fr3-7834-vgxr, CGA-4p6p-gq5f-fpj9, CGA-4q99-xrm7-x65r, CGA-587v-83cg-gj4m, CGA-58xw-3xg3-7g77, CGA-5932-ff9g-wf57, CGA-5hfp-6m38-vfgh, CGA-65mx-rqhq-q86r, CGA-668x-5g99-wjrp, 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-7hj2-g5cv-24gm, CGA-7p6v-jvch-g9xx, CGA-7rxx-j2gg-7jg9, CGA-7wmr-q6hg-278p, CGA-7x85-542h-2qr5, CGA-87v5-2pxh-wrmw, CGA-8chr-gq5f-m4pr, CGA-8qj6-8892-h7gx, CGA-8qxx-fqc2-x2c2, CGA-8v2p-cwpq-hg86, CGA-923c-59c7-6753, CGA-95rh-7m4m-vx97, 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-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-fqm4-c855-2rc2, CGA-frcq-2625-m6p6, CGA-frqj-5j2x-7xr8, CGA-fvh5-3w86-rhc2, CGA-fvxc-c5q6-729m, CGA-g35c-j4rq-3ppg, CGA-g99f-hr7x-6crg, CGA-gv4w-7p9q-qf9q, CGA-h35j-rfvh-grqh, CGA-h3pf-9mc8-pr53, CGA-h85g-92vw-prhg, CGA-hc3w-cww6-j6vx, CGA-hhhj-6gqc-6wxw, CGA-hj9g-wmhg-cvv8, CGA-hjqm-4f95-g73g, CGA-hpxr-g22q-g3q9, CGA-hq7g-pw56-pwfh, CGA-hqj9-mh38-33fq, CGA-j4gv-49qc-76xv, CGA-j5p2-45cp-mq79, CGA-j5xr-5wfw-wr67, CGA-j68j-j34f-x3qh, CGA-j9v9-8hpj-6pr2, CGA-jf25-8gfx-qc5r, CGA-jg46-w44v-p5h6, CGA-jpxm-wvmm-v8wv, CGA-jwc4-xrwh-c883, CGA-jwhq-vgpv-ggrp, CGA-m3xv-p5mq-4mjx, CGA-m8cw-w4rf-2c7h, CGA-mgpx-f5jm-jjr7, CGA-mjxg-pj2p-w467, CGA-mq8j-cpr4-47v7, CGA-pv44-9fw5-9qf9, CGA-q2qg-fvrf-pfg8, CGA-q8p4-9wjf-4pxq, CGA-qqwh-7v4w-fww4, CGA-qr49-gp8v-735p, CGA-qw3q-h77q-wcwr, CGA-r322-rq9j-378r, CGA-r4gm-w66h-6x97, CGA-r66f-996f-xvfp, CGA-r68v-j8mr-p4mc, CGA-rcp4-x8gq-73pj, CGA-rg82-cmfq-x3wv, CGA-rgvf-7rw3-8cxp, CGA-rgx6-g4jw-hc7v, CGA-rjg4-f6r4-7h95, CGA-rjg8-h7cf-jjh2, CGA-rwpr-4fw3-cm82, CGA-v297-q4h6-9pw4, CGA-v3fq-rh9j-cqc6, CGA-v42c-q7hf-859m, CGA-v663-jhf9-7mfp, CGA-v854-4gj7-hx33, CGA-vhgg-rh94-mmfc, CGA-vjvx-f2g5-47f9, CGA-vmrm-mf3v-pr87, CGA-vv5p-3cv4-g6f2, CGA-vv8q-wp7r-hgq2, CGA-vvhw-pjp6-932h, CGA-vxx8-m3r4-gmp8, CGA-w5ww-447r-j6vm, CGA-w765-67mf-px62, CGA-w8v6-hr56-43g7, CGA-w93m-w26x-h7pm, CGA-wj68-hm2q-vg67, CGA-wm95-8885-vxfj, CGA-wrrm-h36q-r8p8, CGA-wwj7-r9mx-wg4v, CGA-wx86-2ggj-f6wx, CGA-x39g-5ggm-8phh, CGA-x3f3-78h3-cqjh, CGA-xhqp-gfvq-9cx3, CGA-xr64-rc55-hf33, CGA-xvx3-4c8r-gxqf, CGA-xw4p-7c8h-fxpj, CGA-xx83-jcpx-vvg8, CGA-xxgv-8532-c6jp
- Record: https://cvemate.com/vulnerability/CVE-2026-0540 · JSON: https://cvemate.com/vulnerability/CVE-2026-0540/json

## Description

```text
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.
```

## Signals

- CVSS: 6.1 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.382%, percentile 34.336%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 110)

- chainguard airflow-2 (Chainguard): All versions (No fix recorded)
- chainguard airflow-core-2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.9 (Chainguard): \< 18.9.8-r8
- chainguard kibana-8.19 (Chainguard): \< 8.19.13-r0
- chainguard kibana-8.19-bitnami (Chainguard): \< 8.19.13-r0
- chainguard kibana-8.19-iamguarded (Chainguard): \< 8.19.13-r0
- chainguard kibana-9.1 (Chainguard): \< 9.1.10-r7
- chainguard kibana-9.1-iamguarded (Chainguard): \< 9.1.10-r7
- chainguard kibana-9.2 (Chainguard): \< 9.2.6-r2

## References

- <https://github.com/cure53/DOMPurify>
- <https://github.com/cure53/DOMPurify/commit/302b51de22535cc90235472c52e3401bedd46f80>
- <https://github.com/cure53/DOMPurify/releases/tag/3.3.2>
- <https://fluidattacks.com/advisories/daft>
- <https://www.vulncheck.com/advisories/dompurify-xss-via-missing-rawtext-elements-in-safe-for-xml>
- <https://ubuntu.com/security/CVE-2026-0540>
- <https://www.cve.org/CVERecord?id=CVE-2026-0540>
- <https://github.com/cure53/DOMPurify/commit/fca0a938b4261ddc9c0293a289935a9029c049f5>
- <https://security-tracker.debian.org/tracker/CVE-2026-0540>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/0xxx/CVE-2026-0540.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-0540>
- <https://www.suse.com/security/cve/CVE-2026-0540>

---

Data as of 2026-12-05T13:05:44.875Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
