CVE-2026-41239
MEDIUM 6.8CVSS 3.1DOMPurify has a SAFE_FOR_TEMPLATES bypass in RETURN_DOM mode
DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Starting in version 1.0.10 and prior to version 3.4.0, SAFE_FOR_TEMPLATES strips {{...}} expressions from untrusted HTML. This works in string mode but not with RETURN_DOM or RETURN_DOM_FRAGMENT, allowing XSS via template-evaluating frameworks like Vue 2. Version 3.4.0 patches the issue.
- Published
- 23 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-1289CWE-79
- Also known as
- GHSA-crv5-9vww-q3g8
- Sources
- NVDJSONOSV GHSA-crv5-9vww-q3g8JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | dompurify | >= 1.0.10, < 3.4.0 | 3.4.0 |
References
- https://github.com/cure53/DOMPurify/releases/tag/3.4.0 · WEB
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-crv5-9vww-q3g8 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-41239 · ADVISORY
- https://github.com/cure53/DOMPurify · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 23 Apr 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 22 Apr 2026)