GHSA-94h2-9755-qfgp
MEDIUM 6.1CVSS 3.1withdrawn / rejectedDuplicate Advisory: SAFE_FOR_TEMPLATES bypass: template expressions reassemble when sanitized output is reparsed (nested <form> and orphaned end tags)
Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-qm7q-q8h9-jg8q. This link is maintained to preserve external references.
Original Description
DOMPurify before 3.4.18 contains a SAFE_FOR_TEMPLATES bypass that allows attackers to smuggle template expressions past sanitization using nested form elements or orphaned end tags. When the sanitized output is reparsed via innerHTML, split braces merge into live {{...}} expressions that Vue or AngularJS evaluate, executing attacker JavaScript in victims' browsers.
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X | |
| OSV | GitHub | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | dompurify | all versions |
References
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-qm7q-q8h9-jg8q · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-140391 · ADVISORY
- https://www.vulncheck.com/advisories/dompurify-before-3.4.18-safe-for-templates-bypass-leading-to-xss · WEB
History
- 3 Dec 2026 19:56 UTC · OSV: first stored (published 1 Dec 2026)