# CVE-2026-65900: DOMPurify before 3.4.8 Template Expression Injection via RETURN_DOM

- 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.31%, higher than 16% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-15T20:02:40.000Z
- Modified: 2026-10-24T13:10:00.147Z
- Also known as: GHSA-gvmj-g25r-r7wr
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

DOMPurify versions >=3.0.0 and before 3.4.8, when configured with SAFE_FOR_TEMPLATES together with a DOM output mode (RETURN_DOM, RETURN_DOM_FRAGMENT, or IN_PLACE), fail to strip template expressions (e.g. ${evil}, {{evil}}, <%evil%>) inside <template> element content. The final normalization/scrub pass (_scrubTemplateExpressions) uses a NodeIterator and node.normalize() that do not descend into template.content, so expressions that only form after adjacent text nodes merge survive sanitization. This bypasses SAFE_FOR_TEMPLATES and can allow a downstream template engine to evaluate attacker-supplied expressions. The string output path is not affected.

(As written by CVE List.)

## Affected

- cure53 DOMPurify: from 3.0.0 before 3.4.8 (not affected: 3.4.8)
- dompurify (npm): from 3.0.0 before 3.4.8

## 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:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P`

## References

- <https://github.com/cure53/DOMPurify/security/advisories/GHSA-gvmj-g25r-r7wr> (exploit, third-party-advisory, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/dompurify-before-template-expression-injection-via-return-dom> (third-party-advisory)
- <https://github.com/cure53/DOMPurify> (package)

## Sources

- CVE List: [CVE-2026-65900](https://www.cve.org/CVERecord?id=CVE-2026-65900), CVE Terms of Use, modified 2026-07-23
- GitHub Advisory Database: [GHSA-gvmj-g25r-r7wr](https://github.com/advisories/GHSA-gvmj-g25r-r7wr), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-65900](https://nvd.nist.gov/vuln/detail/CVE-2026-65900), Public domain, modified 2026-10-24

---

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