CVEBrief

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.

Exploited in the wild
Not in CISA KEV
KEV 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
Exploit odds (EPSS)
0.38% in 30 days
higher than 34% of CVEs; FIRST, December 2, 2026

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?

VendorProductAffectedFixed or not affected from
cure53DOMPurifyfrom 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?

EcosystemPackageAffectedFixed inAdvisory
npmdompurify>= 3.1.3, < 3.3.23.3.2GHSA-v2wj-7wpq-c8vv
npmdompurify>= 2.5.3, < 2.5.92.5.9GHSA-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?

VendorProductVersionsType
cure53dompurifyfrom 2.5.3 through 2.5.8application
cure53dompurifyfrom 3.1.3 through 3.3.1application

NVD analysis (status Modified), last modified June 17, 2026, 10:10 UTC.

How severe is CVE-2026-0540?

ScoreVersionVectorSource
Medium 5.3CVSS 4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NFluid Attacks
Medium 6.1CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NFluid 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?

Where are the vendor advisories and references?

Who found and reported it?

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?

Every CVE in DOMPurify

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.