Home / cure53 / DOMPurify / CVE-2026-0540
CVE-2026-0540: is it exploited, and which versions of cure53 DOMPurify are affected and fixed?
CVE-2026-0540 is a cross-site scripting (XSS) vulnerability in cure53 DOMPurify. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:08 UTC). Affected: dompurify from 3.1.3 before 3.3.2 and dompurify from 2.5.3 before 2.5.9 (GitHub advisory GHSA-v2wj-7wpq-c8vv). Fixed in 3.3.2 and 2.5.9 (GitHub advisory GHSA-v2wj-7wpq-c8vv). Severity: Medium (5.3, CVSS 4.0, from Fluid Attacks).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:08 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:13 UTC.
What is CVE-2026-0540?
DOMPurify XSS via Missing Rawtext Elements in SAFE_FOR_XML
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.
From the CVE record by VulnCheck, last updated March 25, 2026, 15:52 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| cure53 | DOMPurify | from 3.1.3 through 3.3.1 from 2.5.3 through 2.5.8 |
As the CVE record by VulnCheck states it, last updated March 25, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | dompurify | >= 3.1.3, < 3.3.2 | 3.3.2 | GHSA-v2wj-7wpq-c8vv |
| npm | dompurify | >= 2.5.3, < 2.5.9 | 2.5.9 | GHSA-v2wj-7wpq-c8vv |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated March 30, 2026. Summary: DOMPurify contains a Cross-site Scripting vulnerability.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| cure53 | dompurify | from 2.5.3 through 2.5.8 | application |
| cure53 | dompurify | from 3.1.3 through 3.3.1 | application |
NVD analysis (status Modified), last modified June 17, 2026, 10:10 UTC.
How severe is CVE-2026-0540?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.3 | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N | Fluid Attacks |
| Medium 6.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | Fluid Attacks |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-0540 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, March 3, 2026)
- EPSS
- 0.38% probability of exploitation activity in the next 30 days, percentile 34.3 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-79 Improper Neutralization of Input During Web Page Generation
Where are the vendor advisories and references?
- DOMPurify GitHub Repository product
- https://github.com/cure53/DOMPurify/commit/302b51de22535cc90235472c52e3401bedd46f80 patch
- VulnCheck Advisory: DOMPurify XSS via Missing Rawtext Elements in SAFE_FOR_XML release-notes
- https://fluidattacks.com/advisories/daft third-party-advisory
- https://www.vulncheck.com/advisories/dompurify-xss-via-missing-rawtext-elements-in-safe-for-xml third-party-advisory
Who found and reported it?
- Camilo Vera - Fluid Attacks (finder)
- Cristian Vargas - Fluid Attacks (finder)
- Scott Moore - VulnCheck (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- December 27, 2025
- Published
- March 3, 2026, 17:26 UTC
- CVE record updated
- March 25, 2026, 15:52 UTC by VulnCheck
- NVD
- Modified, last modified June 17, 2026, 10:10 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:13 UTC; KEV December 3, 2026, 11:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect DOMPurify?
- Dec 1, 2026CVE-2026-140391 cure53 DOMPurify: cross-site scripting (XSS)
- Oct 26, 2026CVE-2026-116804 cure53 DOMPurify: cross-site scripting (XSS)
- Oct 26, 2026CVE-2026-116803 cure53 DOMPurify: cross-site scripting (XSS)
- Oct 26, 2026CVE-2026-116802 cure53 DOMPurify: cross-site scripting (XSS)
- Oct 12, 2026CVE-2026-109345 cure53 DOMPurify: cross-site scripting (XSS)
- Oct 12, 2026CVE-2026-109344 cure53 DOMPurify: cross-site scripting (XSS)
- Aug 18, 2026CVE-2026-75838 cure53 DOMPurify: cross-site scripting (XSS)
- Jul 24, 2026CVE-2026-66010 cure53 DOMPurify: cross-site scripting (XSS)
Questions about CVE-2026-0540
Is CVE-2026-0540 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:08 UTC. FIRST's EPSS gives it a 0.38% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of cure53 DOMPurify are affected by CVE-2026-0540?
dompurify from 3.1.3 before 3.3.2 and dompurify from 2.5.3 before 2.5.9, per the GitHub advisory GHSA-v2wj-7wpq-c8vv. The tables above give every range the sources list.
Which version fixes CVE-2026-0540?
3.3.2 and 2.5.9, per the GitHub advisory GHSA-v2wj-7wpq-c8vv. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-0540?
Medium (5.3, CVSS 4.0, from Fluid Attacks). The severity table above shows each score with its source.
Where is the official record of CVE-2026-0540?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.