CVE-2025-26791: XSS

Published Feb 14, 2025
·
Updated

DOMPurify before 3.2.4 has an incorrect template literal regular expression when SAFE_FOR_TEMPLATES is set to true, sometimes leading to mutation cross-site scripting (mXSS).

Affected Software

4 affected componentsFixes available
DOMPurify DOMPurify<3.2.4
npm/dompurify<3.2.4
3.2.4
Cure53 DOMPurify<3.2.4
IBM watsonx.data intelligence<=5.2.0, 5.2.1, 5.3.0, 5.3.1

Event History

Feb 14, 2025
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·09:01 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·09:15 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 AM
RemedyAffected Software
Advisory Published
via GitHub·09:31 AM
Data Sourced
via GitHub·09:31 AM
DescriptionSeverityWeaknessAffected Software
Apr 27, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected 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-26791?

CVE-2025-26791 is classified as a medium severity vulnerability due to the potential for mutation cross-site scripting (mXSS).

2

How do I fix CVE-2025-26791?

To fix CVE-2025-26791, upgrade to DOMPurify version 3.2.4 or later, which addresses the incorrect template literal regular expression.

3

What is the impact of CVE-2025-26791?

The impact of CVE-2025-26791 is that it may allow an attacker to execute malicious scripts in the context of the victim's browser, leading to possible data theft or session hijacking.

4

Which versions of DOMPurify are affected by CVE-2025-26791?

CVE-2025-26791 affects all versions of DOMPurify prior to 3.2.4.

5

Is there a workaround for CVE-2025-26791 if I cannot upgrade?

Currently, there are no reliable workarounds for CVE-2025-26791, so upgrading is the recommended approach to mitigate the vulnerability.

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