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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-14 · Modified: 2026-07-21
- Aliases: UBUNTU-CVE-2026-49978, DEBIAN-CVE-2026-49978, CGA-6852-w6cx-whmg, CGA-9j7j-rfj7-j3qp, CGA-fq8h-4hx4-jfwp, CGA-g8fx-jp2j-q9p5, CGA-gcpm-mfq2-fqm6, CGA-h7q7-hhpp-h259, CGA-j34v-6w3x-56j9, CGA-mcqp-wgpf-8qwv, CGA-xwmj-c8jf-r8c2, GHSA-rp9w-3fw7-7cwq, CGA-27g4-6qmg-48qf, CGA-2hc4-7gr6-f3fg, CGA-2j73-2h7p-9858, CGA-2jgx-25hq-wcmr, CGA-2wj7-6jw2-7q5f, CGA-3282-wv2c-6j8r, CGA-35p4-hvp3-xcw5, CGA-364v-h3h4-2896, CGA-38p7-j44r-5gpw, CGA-39wr-4vhf-3x2r, CGA-3g67-rpw2-fhc9, CGA-3vrj-v994-jxh7, CGA-435w-qxmv-p753, CGA-4462-8fpq-3v7v, CGA-44gj-2gp4-q493, CGA-47fh-v3pg-8m3p, CGA-4c8w-3m96-x55q, CGA-4x6c-3fjw-f9gr, CGA-54c7-5f56-6m8m, CGA-54j5-p9w7-pwx4, CGA-56mv-fg5h-c9f8, CGA-5jc4-mrwh-2g7g, CGA-5v74-5q3f-vgmx, CGA-668p-888m-gcwp, CGA-68c8-52gq-p25p, CGA-696w-583p-92h8, CGA-6fwj-g4cx-gc97, CGA-6w46-v368-4rpv, CGA-6x4g-m695-7779, CGA-72qq-29g2-8256, CGA-78fm-43qx-p9ff, CGA-78qv-8p46-7mpm, CGA-7f66-cx57-pj73, CGA-7pgm-gg4j-w4g9, CGA-7xwg-288h-g5r6, CGA-83vw-4rxj-m378, CGA-84h8-3fhq-hwcg, CGA-874g-v638-54q3, CGA-8cfh-3357-93pr, CGA-8gr4-hfwr-3gp5, CGA-9cmv-mxjm-hmh7, CGA-9j2r-6737-8wj9, CGA-9qp8-r7f8-cgfj, CGA-9qqp-g922-ffg4, CGA-c26v-3xc5-qw55, CGA-c3rr-4483-f59j, CGA-c5fq-8fpm-5jww, CGA-c7f5-w5h6-h4gw, CGA-cc33-vc7j-6xmg, CGA-cq5w-h5r8-m7x7, CGA-cw8j-x6rr-3xf9, CGA-f234-rjhf-4cv9, CGA-f27f-gj9w-w59h, CGA-g226-vc9c-f96x, CGA-g242-9cfh-5ff4, CGA-g5vp-558f-g45w, CGA-g9qr-83jq-93mf, CGA-gg92-c867-fcvx, CGA-gp34-575w-cg3c, CGA-gq3v-xfmh-9crh, CGA-gr92-x8mv-jj6g, CGA-grvw-2r2v-q53x, CGA-gx3q-c646-xvv2, CGA-h5gm-7c5c-53px, CGA-hjhp-c899-3hpg, CGA-hmwm-c888-6jg8, CGA-hpjf-776c-5xxq, CGA-j2v7-9rff-8wc2, CGA-j8pm-97rj-ffm8, CGA-jw8f-5377-9fcc, CGA-jwmx-3pvh-hfxq, CGA-m4mf-2v2h-rjhr, CGA-m75g-9p5m-gg7g, CGA-m862-rrq9-jjx3, CGA-mh75-3whf-3h7w, CGA-mq3m-7p8g-c76j, CGA-mw6f-v69v-99fh, CGA-p66x-43vw-qfv9, CGA-p8fv-8hw3-5c9p, CGA-pc9v-h2w5-w4mc, CGA-q675-pvxh-9697, CGA-qp6q-rvqx-h5qq, CGA-qrcp-h89v-69wr, CGA-r8vv-f85v-vwhj, CGA-rc9g-xmw5-pvrj, CGA-rgq6-6mf6-f66j, CGA-rjq6-cwc4-gf86, CGA-rmww-6fqc-vp2f, CGA-rp4p-2m4v-c7r7, CGA-rqcf-6rv6-jfmv, CGA-vffg-9f2p-3wcw, CGA-w6g7-38fw-fj5x, CGA-wc2h-6pvx-j5h6, CGA-wgww-ffp4-4gjw, CGA-wpfm-vm5p-249f, CGA-x457-x94g-632g, CGA-x9j3-h5px-9jx4, CGA-x9xp-jq5w-rx8j, CGA-xm58-c24f-g5ff, CGA-xq4f-533p-6fhr, CGA-xrqr-r8pm-cx99, CGA-xwmq-v7x5-gcv5, openSUSE-SU-2026:12452-1
- Record: https://cvemate.com/vulnerability/CVE-2026-49978 · JSON: https://cvemate.com/vulnerability/CVE-2026-49978/json

## Description

```text
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.
```

## Signals

- CVSS: 6.3 medium (v4.0, CVE.org) 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
- EPSS: 0.334%, percentile 28.61%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 60)

- chainguard airflow-2 (Chainguard): All versions (No fix recorded)
- chainguard airflow-core-2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.10 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.11 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.0 (Chainguard): All versions (No fix recorded) \| \< 19.0.10-r0
- chainguard gitlab-rails-ce-19.1 (Chainguard): \< 19.1.7-r6
- chainguard gitlab-rails-ce-fips-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.10 (Chainguard): \< 18.10.8-r8
- chainguard gitlab-rails-ce-fips-18.11 (Chainguard): \< 18.11.12-r2
- chainguard gitlab-rails-ce-fips-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.9 (Chainguard): \< 18.9.8-r8

## References

- <https://github.com/cure53/DOMPurify/security/advisories/GHSA-rp9w-3fw7-7cwq>
- <https://github.com/cure53/DOMPurify/commit/ca30f070c360df162a3e3848e80e6fd3c9e74bff>
- <https://github.com/cure53/DOMPurify/releases/tag/3.4.7>
- <https://ubuntu.com/security/CVE-2026-49978>
- <https://www.cve.org/CVERecord?id=CVE-2026-49978>
- <https://security-tracker.debian.org/tracker/CVE-2026-49978>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49978.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-49978>
- <https://github.com/cure53/DOMPurify>
- <https://www.suse.com/security/cve/CVE-2026-49978>

---

Data as of 2026-12-05T12:39:56.520Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
