CVE-2025-26791
JSON

4.5medium

DOMPurify allows Cross-site Scripting (XSS)

Severity
4.5medium CVSS:3.1 by mitre
Exploit likelihood
0.61% (higher than 50% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-vhxf-7vqr-mrjg

Description

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

Affected

Product or packageVersionsReported by
Cure53 DOMPurifybefore 3.2.4CVE List, NVD
dompurify (npm)before 3.2.4GitHub Advisory Database

All scores

mitre4.5medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
GitHub4.5medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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

GitHub Advisory Database

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).

NVD (es)

DOMPurify anterior a 3.2.4 tiene una expresión regular literal de plantilla incorrecta, lo que a veces provoca Cross Site Scripting (mXSS) de mutación.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-26791 changed 2025-02-14CVE Terms of Use
GitHub Advisory DatabaseGHSA-vhxf-7vqr-mrjg changed 2026-09-10CC-BY-4.0
NVDCVE-2025-26791 changed 2026-06-17Public domain