GHSA-94h2-9755-qfgp

Suggest an improvement
Source
https://github.com/advisories/GHSA-94h2-9755-qfgp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-94h2-9755-qfgp/GHSA-94h2-9755-qfgp.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-94h2-9755-qfgp
Downstream
CGA (245)
Withdrawn
2026-12-03T18:07:31Z
Published
2026-12-01T15:31:23Z
Modified
2026-12-03T18:15:03Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
  • 5.1 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
Duplicate Advisory: SAFE_FOR_TEMPLATES bypass: template expressions reassemble when sanitized output is reparsed (nested <form> and orphaned end tags)
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-12-03T18:07:31Z",
    "nvd_published_at":  "2026-12-01T15:18:04Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / dompurify

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Database specific

last_known_affected_version_range
"< 3.4.18"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-94h2-9755-qfgp/GHSA-94h2-9755-qfgp.json"