CVE-2025-26791: XSS

Published Feb 14, 2025
·
Updated

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

Other sources

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

— NVD

Affected Software

13 affected componentsFixes available
DOMPurify DOMPurify<3.2.4
npm/dompurify<3.2.4
3.2.4
IBM watsonx.data intelligence<=5.2.0, 5.2.1, 5.3.0, 5.3.1
Cure53 DOMPurify<3.2.4
ubuntu/node-dompurify*
ubuntu/node-dompurify*
ubuntu/node-dompurify*
ubuntu/node-dompurify*
ubuntu/node-dompurify*
debian/node-dompurify<=2.4.1+dfsg+~2.4.0-2+deb12u1, <=2.4.1+dfsg+~2.4.0-2+deb12u2
3.1.7+dfsg+~3.0.5-2
debian/node-dompurify*
debian/node-dompurify<3.1.7+dfsg+~3.0.5-2
3.1.7+dfsg+~3.0.5-2
debian/node-dompurify<3.1.7+dfsg+~3.0.5-2
3.1.7+dfsg+~3.0.5-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/dompurify to a version that resolves this vulnerability.

    Fixed in 3.2.4
  2. Upgrade

    Upgrade debian/node-dompurify to a version that resolves this vulnerability.

    Fixed in 3.1.7+dfsg+~3.0.5-2

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 OSV·09:15 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·09:15 AM
DescriptionSeverityWeakness
Advisory Published
via GitHub·09:31 AM
Data Sourced
via GitHub·09:31 AM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·06:05 PM
Mar 19, 2025
Event
via FIRST·12:00 AM
Apr 16, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
May 2, 2025
Updated
via IBM·12:00 AM
Affected Software
Jun 30, 2025
Updated
via GitHub·02:24 PM
Description
Sep 11, 2025
Updated
via IBM·12:00 AM
Affected Software
Oct 7, 2025
Data Sourced
via NVD·08:56 PM
RemedyAffected Software
Updated
via NVD·08:56 PM
Severity
Event
via NVD·08:56 PM
Nov 19, 2025
Updated
via IBM·12:00 AM
Affected Software
Apr 27, 2026
Updated
via IBM·12:00 AM
Affected Software
Jun 17, 2026
Updated
via NVD·09:02 AM
Severity

Parent advisories

This vulnerability appears in the following advisories.

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