CVE-2026-0540
published 2026-03-03CVE-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…
PriorityP427medium6.1CVSS 3.1
AVNACLPRNUIRSCCLILAN
EPSS
0.34%
26.1th percentile
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 in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts.
Affected
5 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| cure53 | dompurify | >= 2.5.3 < 2.5.9 | 2.5.9 |
| cure53 | dompurify | 2.5.3 – 2.5.8 | — |
| cure53 | dompurify | >= 3.1.3 < 3.3.2 | 3.3.2 |
| cure53 | dompurify | 3.1.3 – 3.3.1 | — |
| debian | node-dompurify | < node-dompurify 3.3.2+dfsg-1 (forky) | node-dompurify 3.3.2+dfsg-1 (forky) |
CVSS provenance
nvdv3.16.1MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
nvdv4.05.3MEDIUMCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
osv5.3MEDIUM
vendor_debian5.3MEDIUM
vendor_redhat5.3MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
DOMPurify contains a Cross-site Scripting vulnerability
osv·2026-03-03
CVE-2026-0540 [MEDIUM] DOMPurify contains a Cross-site Scripting vulnerability
DOMPurify contains a Cross-site Scripting vulnerability
DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8, fixed in 2.5.9 and 3.3.2, 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 `` in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts.
GHSA
DOMPurify contains a Cross-site Scripting vulnerability
ghsa·2026-03-03
CVE-2026-0540 [MEDIUM] CWE-79 DOMPurify contains a Cross-site Scripting vulnerability
DOMPurify contains a Cross-site Scripting vulnerability
DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8, fixed in 2.5.9 and 3.3.2, 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 `` in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts.
OSV
CVE-2026-0540: DOMPurify 3
osv·2026-03-03·CVSS 5.3
CVE-2026-0540 [MEDIUM] CVE-2026-0540: DOMPurify 3
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 in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts.
Red Hat
DOMPurify: DOMPurify: Cross-site scripting vulnerability
vendor_redhat·2026-03-03·CVSS 5.3
CVE-2026-0540 [MEDIUM] CWE-79 DOMPurify: DOMPurify: Cross-site scripting vulnerability
DOMPurify: DOMPurify: Cross-site scripting vulnerability
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 in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts.
A cross site scripting flaw has been discovered in the DOMPurify npm library. This flaw 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 in att
Debian
CVE-2026-0540: node-dompurify - DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8, fixed in commit 2726c74, ...
vendor_debian·2026·CVSS 5.3
CVE-2026-0540 [MEDIUM] CVE-2026-0540: node-dompurify - DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8, fixed in commit 2726c74, ...
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 in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts.
Scope: local
bookworm: open
forky: resolved (fixed in 3.3.2+dfsg-1)
sid: resolved (fixed in 3.3.2+dfsg-1)
trixie: open
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2026-0540 python-jupytext: DOMPurify: Cross-site scripting vulnerability [fedora-all]
bugzilla·2026-03-03·CVSS 5.3
CVE-2026-0540 [MEDIUM] CVE-2026-0540 python-jupytext: DOMPurify: Cross-site scripting vulnerability [fedora-all]
CVE-2026-0540 python-jupytext: DOMPurify: Cross-site scripting vulnerability [fedora-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
Discussion:
FEDORA-2026-301cbbe347 (python-jupytext-1.19.1-4.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-301cbbe347
---
FEDORA-2026-85b819b928 (python-jupytext-1.19.1-4.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-85b819b928
---
FEDORA-2026-793b55138d (python-jupytext-1.19.1-4.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.or
Bugzilla
CVE-2026-0540 DOMPurify: DOMPurify: Cross-site scripting vulnerability
bugzilla·2026-03-03·CVSS 6.1
CVE-2026-0540 [MEDIUM] CVE-2026-0540 DOMPurify: DOMPurify: Cross-site scripting vulnerability
CVE-2026-0540 DOMPurify: DOMPurify: Cross-site scripting vulnerability
DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8, fixed in commit 729097f, 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 in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts.
Bugzilla
CVE-2026-0540 jupyterlab: DOMPurify: Cross-site scripting vulnerability [fedora-all]
bugzilla·2026-03-03·CVSS 6.1
CVE-2026-0540 [MEDIUM] CVE-2026-0540 jupyterlab: DOMPurify: Cross-site scripting vulnerability [fedora-all]
CVE-2026-0540 jupyterlab: DOMPurify: Cross-site scripting vulnerability [fedora-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
Wiz
CVE-2026-0540 Impact, Exploitability, and Mitigation Steps | Wiz
blogs_wiz·CVSS 5.3
CVE-2026-0540 [MEDIUM] CVE-2026-0540 Impact, Exploitability, and Mitigation Steps | Wiz
## CVE-2026-0540 :
JavaScript vulnerability analysis and mitigation
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 in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts.
Source : NVD
## 5.3
Score
Published March 3, 2026
Severity MEDIUM
CNA Score 5.3
Affected Technologies
JavaScript
Grafana
Has Public Exploit No
Has CISA KEV Exploit No
CISA KEV Release Date N/A
CISA KEV Due Date N/A
Exploitation Probability Percentile (EPSS) 1.9
Expl
https://fluidattacks.com/advisories/dafthttps://github.com/cure53/DOMPurifyhttps://github.com/cure53/DOMPurify/commit/302b51de22535cc90235472c52e3401bedd46f80https://github.com/cure53/DOMPurify/releases/tag/3.3.2https://www.vulncheck.com/advisories/dompurify-xss-via-missing-rawtext-elements-in-safe-for-xml
2026-03-03
Published