# CVE-2026-49978: DOMPurify IN_PLACE Sanitization Bypass via Attached Shadow Root Inside <template>.content

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:H/SI:H/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.33%, higher than 28% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-15T20:01:45.000Z
- Modified: 2026-10-24T21:10:00.130Z
- Also known as: GHSA-rp9w-3fw7-7cwq
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Prior to 3.4.7, DOMPurify IN_PLACE sanitization could skip shadow contents attached to an element inside <template>.content, allowing attacker-controlled markup such as event handlers, JavaScript URLs, or scripts to survive and execute when an application cloned and inserted the sanitized template. This issue is fixed in version 3.4.7.

(As written by CVE List.)

## Affected

- cure53 DOMPurify: < 3.4.6; before 3.4.7
- dompurify (npm): before 3.4.7

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N`
- GitHub: CVSS:4.0 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`
- NVD: 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`

## References

- <https://github.com/cure53/DOMPurify/security/advisories/GHSA-rp9w-3fw7-7cwq> (exploit, vendor-advisory, web)
- <https://github.com/cure53/DOMPurify/commit/ca30f070c360df162a3e3848e80e6fd3c9e74bff> (patch)
- <https://github.com/cure53/DOMPurify/releases/tag/3.4.7> (release-notes)
- <https://github.com/cure53/DOMPurify> (package)

## Sources

- CVE List: [CVE-2026-49978](https://www.cve.org/CVERecord?id=CVE-2026-49978), CVE Terms of Use, modified 2026-07-21
- GitHub Advisory Database: [GHSA-rp9w-3fw7-7cwq](https://github.com/advisories/GHSA-rp9w-3fw7-7cwq), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-49978](https://nvd.nist.gov/vuln/detail/CVE-2026-49978), Public domain, modified 2026-10-24

---

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