CVE-2025-15599: DOMPurify XSS via Textarea Rawtext Bypass in SAFE_FOR_XML

Published Mar 3, 2026
·
Updated

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.

Affected Software

3 affected components
npm/dompurify>=3.1.3<=3.2.6, >=2.5.3<=2.5.8
Cure53 DOMPurify>=2.5.3<=2.5.8
Cure53 DOMPurify>=3.1.3<3.2.7

Event History

Mar 3, 2026
CVE Published
via MITRE·05:26 PM
Data Sourced
via MITRE·05:26 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-15599?

The severity of CVE-2025-15599 is considered high due to its potential for cross-site scripting (XSS) attacks.

2

How do I fix CVE-2025-15599?

To fix CVE-2025-15599, upgrade DOMPurify to versions 3.2.7 or higher, or 2.5.9 or higher.

3

What versions of DOMPurify are affected by CVE-2025-15599?

CVE-2025-15599 affects DOMPurify versions 3.1.3 through 3.2.6 and 2.5.3 through 2.5.8.

4

What type of vulnerability is CVE-2025-15599?

CVE-2025-15599 is a cross-site scripting (XSS) vulnerability that allows attackers to bypass attribute sanitization.

5

What causes CVE-2025-15599?

CVE-2025-15599 is caused by missing validation of textarea rawtext elements in the SAFE_FOR_XML regex.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203