{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-116804","id":"CVE-2026-116804","title":"DOMPurify XSS in shadow-root template sanitization","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.","descriptionLong":"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.","published":"2026-10-26T23:05:35.850Z","updated":"2026-11-04T02:31:04.672314120Z","reserved":"2026-10-26T22:13:13.606Z","status":"Awaiting Analysis","rejected":false,"assigner":"VulnCheck","metric":{"version":"4.0","score":5.1,"vector":"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","rating":"medium","source":"VulnCheck"},"metrics":[{"version":"4.0","score":5.1,"vector":"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","rating":"medium","source":"VulnCheck"},{"version":"4.0","score":5.1,"vector":"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:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"medium","source":"vulncheck.com"},{"version":"4.0","score":null,"vector":"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"low","source":"GitHub"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"VulnCheck"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"vulncheck.com"}],"rating":"medium","products":["cure53 DOMPurify"],"affectedProducts":[{"vendor":"cure53","product":"DOMPurify","defaultStatus":"unaffected","versions":[{"version":"3.4.4","status":"affected","versionType":"semver","lessThan":"3.4.17"},{"version":"3.4.17","status":"unaffected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"dompurify","purl":"pkg:npm/dompurify","ranges":[">=3.4.4 <3.4.17"],"fixed":["3.4.17"],"advisory":"GHSA-cg2g-xh64-v4q7"}],"cwes":["CWE-79"],"aliases":["GHSA-cg2g-xh64-v4q7"],"references":[{"url":"https://github.com/cure53/DOMPurify/security/advisories/GHSA-cg2g-xh64-v4q7","tags":["vendor-advisory","exploit","advisory","web"]},{"url":"https://www.vulncheck.com/advisories/dompurify-from-3.4.4-before-3.4.17-safe-for-templates-bypass-via-shadow-root-content","tags":["third-party-advisory","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116804.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116804","tags":["advisory"]},{"url":"https://github.com/cure53/DOMPurify/pull/1672","tags":["web"]},{"url":"https://github.com/cure53/DOMPurify/commit/a77a3e78b59f72fa4d1c83f22e121ad9cc7d3575","tags":["web"]},{"url":"https://github.com/cure53/DOMPurify","tags":["package"]},{"url":"https://github.com/cure53/DOMPurify/releases/tag/3.4.17","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00178,"epssPercentile":0.07525,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-116804","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116804","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-116804","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-cg2g-xh64-v4q7","ok":true,"note":"GHSA-cg2g-xh64-v4q7"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-116804","ok":true,"note":"scored 2026-11-19"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}