{"vuln_id":"GHSA-cg2g-xh64-v4q7","aliases":[],"description":"DOMPurify SAFE_FOR_TEMPLATES bypass: split template expressions survive in attached shadow root content on DOM output modes","published_at":"2026-10-22T16:25:31Z","modified_at":"2026-11-19T00:03:19Z","first_seen_at":"2026-11-21T19:15:20.139711Z","severity":"low","severity_source":"ghsa","cvss_score":2.3,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","cwe":["CWE-79"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-cg2g-xh64-v4q7"},"matched_alias":null,"items":[{"id":2426,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-cg2g-xh64-v4q7: DOMPurify SAFE_FOR_TEMPLATES bypass: split template expressions survive in attached shadow root content on DOM output modes","summary":"DOMPurify SAFE_FOR_TEMPLATES bypass: split template expressions survive in attached shadow root content on DOM output modes\n\n## Summary\n\nWhen DOMPurify is configured with `SAFE_FOR_TEMPLATES: true` together with a DOM-returning mode (`RETURN_DOM: true`, `RETURN_DOM_FRAGMENT: true`, or `IN_PLACE: true`), template expressions such as `{{...}}`, `${...}`, and `<%...%>` survive sanitization inside the text content of an attached shadow root. The post-walk safety net `_scrubTemplateExpressions` (`src/purify.ts:1717`) was extended to recurse into `","url":"https://github.com/advisories/GHSA-cg2g-xh64-v4q7","published_at":"2026-10-22T16:25:31Z","updated_at":"2026-11-19T00:03:19Z","fetched_at":"2026-11-21T19:15:18.416827Z","severity":"low","cvss_score":2.3,"epss":null,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"dompurify","vuln_id":"GHSA-cg2g-xh64-v4q7","vuln_ids":["GHSA-CG2G-XH64-V4Q7"],"tags":["ghsa","npm","CWE-79"],"cluster_id":2284,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2426","html":"https://vulnwatch.ve1ve2.com/item/2426"}}]}