{"id":"CVE-2026-40301","published":"2026-04-17T20:51:37Z","modified":"2026-04-20T14:57:39Z","title":"rhukster/dom-sanitizer: SVG <style> tag allows CSS injection via unfiltered url() and @import directives","vendor":"rhukster","product":"dom-sanitizer","tier":"tail","description":{"text":"DOMSanitizer is a DOM/SVG/MathML Sanitizer for PHP 7.3+. Prior to version 1.0.10, DOMSanitizer::sanitize() allows <style> elements in SVG content but never inspects their text content. CSS url() references and @import rules pass through unfiltered, causing the browser to issue HTTP requests to attacker-controlled hosts when the sanitized SVG is rendered. Version 1.0.10 fixes the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00328,"percentile":0.26517,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/rhukster/dom-sanitizer/security/advisories/GHSA-93vf-569f-22cq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rhukster/dom-sanitizer/commit/49a98046b708a4c92f754f5b0ef1720bb85142e2","tags":["x_refsource_MISC"]},{"url":"https://github.com/rhukster/dom-sanitizer/releases/tag/1.0.10","tags":["x_refsource_MISC"]}],"priority":{"score":8.6,"factors":[{"name":"EPSS percentile","points":5.3},{"name":"CVSS severity","points":3.29}]},"vendorSlug":"rhukster","affectedVersions":[{"vendor":"rhukster","product":"dom-sanitizer","versions":["< 1.0.10"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-20T14:42:31.756128Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"rhukster/dom-sanitizer","vulnerableRanges":["<1.0.10"],"patched":["1.0.10"],"from":["GHSA-93vf-569f-22cq"],"provenance":"source"}],"summary":{"text":"The DOM sanitizer rhukster/dom-sanitizer, a PHP library for sanitizing DOM, SVG and MathML content, fails to inspect the text content of SVG <style> elements, so flaws exist in its sanitize() method for versions before 1.0.10. An attacker can supply SVG content in which CSS url() references and @import rules survive sanitization, causing a victim's browser to make requests to attacker-controlled hosts when the sanitized SVG is rendered, which requires the victim to view or interact with the rendered content.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:34Z"},"euvd":{"id":"EUVD-2026-23545","exploited":false,"provenance":"source"}}