CVE-2026-41239
published medium CVSS 3.1 · 6.8DOMPurify has a SAFE_FOR_TEMPLATES bypass in RETURN_DOM mode
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| cure53 | — | DOMPurify>= 1.0.10, < 3.4.0 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.8 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| cure53 | DOMPurify | >= 1.0.10, < 3.4.0 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CWE-1289 CWE-1289: Improper Validation of Unsafe Equivalence in Input
References
2Provider assertions
2GitHub_M · cna
DOMPurify has a SAFE_FOR_TEMPLATES bypass in RETURN_DOM mode
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 58cc66814592a0cc4832b97c5921635dce279f5c97adcc29eb1734bbf5157be0
- Ingested
- 23 Sep 2026, 09:13:40 UTC
- Source record
- Official CVE record