{"id":"CVE-2026-140391","aliases":["CVE-2026-140391"],"related":[],"kind":"vulnerability","state":"published","title":"DOMPurify before 3.4.18 SAFE_FOR_TEMPLATES Bypass Leading to XSS","summary":"DOMPurify before 3.4.18 contains a SAFE_FOR_TEMPLATES bypass that allows attackers to smuggle template expressions past sanitization using nested form elements or orphaned end tags. When the sanitized output is reparsed via innerHTML, split braces merge into live {{...}} expressions that Vue or AngularJS evaluate, executing attacker JavaScript in victims' browsers.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"DOMPurify before 3.4.18 contains a SAFE_FOR_TEMPLATES bypass that allows attackers to smuggle template expressions past sanitization using nested form elements or orphaned end tags. When the sanitized output is reparsed via innerHTML, split braces merge into live {{...}} expressions that Vue or AngularJS evaluate, executing attacker JavaScript in victims' browsers.","source":"cvelist"}],"published":"2026-12-01T14:29:15.635Z","modified":"2026-12-01T15:18:04.127Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":5.1,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":5.1,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"3.4.18","status":"affected"},{"type":"semver","version":"3.4.18","status":"unaffected"}],"vendor":"cure53","product":"DOMPurify","source":"cvelist"}],"references":[{"url":"https://github.com/cure53/DOMPurify/security/advisories/GHSA-qm7q-q8h9-jg8q","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/dompurify-before-3.4.18-safe-for-templates-bypass-leading-to-xss","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["e1abrador"],"assigner":"VulnCheck","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-140391","url":"https://www.cve.org/CVERecord?id=CVE-2026-140391","licence":"CVE Terms of Use","modified":"2026-12-01T14:29:15.635Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-140391","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-140391","licence":"Public domain","modified":"2026-12-01T15:18:04.127Z"}],"updatedAt":"2026-12-01T15:32:16.084Z"}