Skip to main content
VulnerabilityPublished Updated

CVE-2025-15599: cure53 DOMPurify · Cross-site Scripting

Affects cure53 DOMPurifySource CVE Database V5

0
Compare

Not known to be exploited · CVSS 5.1 Medium · fixed in 3.2.7 : update cure53 DOMPurify when convenient.

Data as of 30 Oct 2026, 11:52 UTC

CVSS 4.0 base score
5.1Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 21% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.2.7
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
cure53DOMPurifyAffected
  • >=3.1.3 <=3.2.6
  • >=2.5.3 <=2.5.8
Fixed in–
npmdompurifypkg:npm/dompurifyOther threatsAffected
  • =3.1.3
  • =2.5.3
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Organizations should immediately upgrade to DOMPurify version 3.2.7 or later for the 3.x branch to remediate this vulnerability. In the interim, developers should audit and sanitize any user input that might be embedded inside rawtext elements, especially <textarea>, using additional server-side validation and escaping techniques. Implement Content Security Policy (CSP) headers to restrict script execution and reduce the impact of potential XSS attacks. Conduct thorough code reviews and penetration testing focusing on input sanitization and output encoding. Educate developers about the risks of relying solely on client-side sanitization and encourage defense-in-depth strategies. Monitor web application logs and user reports for suspicious activity indicative of XSS exploitation attempts. Finally, maintain an inventory of all applications and libraries using DOMPurify to ensure timely updates and vulnerability management.

Description

DOMPurify 3.1.3 through 3.2.6 and 2.5.3 through 2.5.8 contain a cross-site scripting vulnerability that allows attackers to bypass attribute sanitization by exploiting missing textarea rawtext element validation in the SAFE_FOR_XML regex. Attackers can include closing rawtext tags like </textarea> in attribute values to break out of rawtext contexts and execute JavaScript when sanitized output is placed inside rawtext elements. The 3.x branch was fixed in 3.2.7; the 2.x branch was never patched.

References

Community reviews

Loading reviews…