CVE-2025-26791
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 package | Versions | Reported by |
|---|---|---|
| Cure53 DOMPurify | before 3.2.4 | CVE List, NVD |
| dompurify (npm) | before 3.2.4 | GitHub Advisory Database |
All scores
| mitre | 4.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N |
| GitHub | 4.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
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
| https://github.com/cure53/DOMPurify/releases/tag/3.2.4 | release-notes, web | |
| https://github.com/cure53/DOMPurify/commit/d18ffcb554e0001748865da03ac75dd7829f0f02 | patch, web | |
| https://nsysean.github.io/posts/dompurify-323-bypass/ | exploit, third-party-advisory | |
| https://ensy.zip/posts/dompurify-323-bypass/ | exploit, third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-26791 | advisory | |
| https://ensy.zip/posts/dompurify-323-bypass | web | |
| https://github.com/cure53/DOMPurify | package | |
| https://nsysean.github.io/posts/dompurify-323-bypass | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-26791 changed 2025-02-14 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vhxf-7vqr-mrjg changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-26791 changed 2026-06-17 | Public domain |