# CVE-2026-116804: DOMPurify from 3.4.4 before 3.4.17 SAFE_FOR_TEMPLATES Bypass via Shadow Root Content

- Severity: Medium 5.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-22T16:25:31.000Z
- Modified: 2026-11-19T00:15:04.697Z
- Also known as: GHSA-cg2g-xh64-v4q7
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

DOMPurify from 3.4.4 before 3.4.17 contains a SAFE_FOR_TEMPLATES bypass that lets attackers preserve template expressions in attached shadow roots when using RETURN_DOM, RETURN_DOM_FRAGMENT, or IN_PLACE modes. Attackers can split expressions across text nodes separated by disallowed elements, which merge after removal and are evaluated by downstream template engines for cross-site scripting.

(As written by CVE List.)

## Affected

- cure53 DOMPurify: from 3.4.4 before 3.4.17 (not affected: 3.4.17)
- dompurify (npm): from 3.4.4 before 3.4.17

## Every score

- VulnCheck: CVSS:4.0 5.1 Medium `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`
- VulnCheck: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Low `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`

## References

- <https://github.com/cure53/DOMPurify/security/advisories/GHSA-cg2g-xh64-v4q7> (exploit, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/dompurify-from-3.4.4-before-3.4.17-safe-for-templates-bypass-via-shadow-root-content> (third-party-advisory)
- <https://github.com/cure53/DOMPurify/pull/1672> (web)
- <https://github.com/cure53/DOMPurify/commit/a77a3e78b59f72fa4d1c83f22e121ad9cc7d3575> (web)
- <https://github.com/cure53/DOMPurify> (package)
- <https://github.com/cure53/DOMPurify/releases/tag/3.4.17> (web)

## Sources

- CVE List: [CVE-2026-116804](https://www.cve.org/CVERecord?id=CVE-2026-116804), CVE Terms of Use, modified 2026-11-02
- GitHub Advisory Database: [GHSA-cg2g-xh64-v4q7](https://github.com/advisories/GHSA-cg2g-xh64-v4q7), CC-BY-4.0, modified 2026-11-19
- NVD: [CVE-2026-116804](https://nvd.nist.gov/vuln/detail/CVE-2026-116804), Public domain, modified 2026-11-02

---

Page: https://cve.day/CVE-2026-116804 · Whole record: https://cve.day/CVE-2026-116804.json · Rebuilt by cve.day 2026-11-25T22:59:47.312Z
