CVE-2025-26791
MEDIUM 6.1CVSS 3.1DOMPurify allows Cross-site Scripting (XSS)
DOMPurify before 3.2.4 has an incorrect template literal regular expression, sometimes leading to mutation cross-site scripting (mXSS).
- Published
- 14 Feb 2025
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-vhxf-7vqr-mrjg
- Sources
- NVDJSONOSV GHSA-vhxf-7vqr-mrjgJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | cve@mitre.org (Secondary) | CVSS 3.1 | MEDIUM 4.5 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.5 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | cure53 | dompurifycpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:* |
< 3.2.4 | 3.2.4 |
| OSV | npm | dompurify | < 3.2.4 | 3.2.4 |
References
- https://ensy.zip/posts/dompurify-323-bypass/ · Exploit, Third Party Advisory, WEB
- https://github.com/cure53/DOMPurify/commit/d18ffcb554e0001748865da03ac75dd7829f0f02 · Patch, WEB
- https://github.com/cure53/DOMPurify/releases/tag/3.2.4 · Release Notes, WEB
- https://nsysean.github.io/posts/dompurify-323-bypass/ · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-26791 · ADVISORY
- https://github.com/cure53/DOMPurify · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 14 Feb 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 14 Feb 2025)