{"id":"CVE-2026-40301","summary":"rhukster/dom-sanitizer: SVG \u003cstyle\u003e tag allows CSS injection via unfiltered url() and @import directives","details":"DOMSanitizer is a DOM/SVG/MathML Sanitizer for PHP 7.3+. Prior to version 1.0.10, DOMSanitizer::sanitize() allows \u003cstyle\u003e 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.","aliases":["GHSA-93vf-569f-22cq"],"modified":"2026-07-08T08:13:13.253232846Z","published":"2026-04-17T20:51:37.226Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40301.json"},"references":[{"type":"WEB","url":"https://github.com/rhukster/dom-sanitizer/releases/tag/1.0.10"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40301.json"},{"type":"ADVISORY","url":"https://github.com/rhukster/dom-sanitizer/security/advisories/GHSA-93vf-569f-22cq"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40301"},{"type":"FIX","url":"https://github.com/rhukster/dom-sanitizer/commit/49a98046b708a4c92f754f5b0ef1720bb85142e2"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/rhukster/dom-sanitizer","events":[{"introduced":"0"},{"fixed":"49a98046b708a4c92f754f5b0ef1720bb85142e2"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"1.0.10"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"versions":["1.0.9","1.0.8","1.0.7","1.0.6","1.0.5","1.0.4","1.0.3","1.0.2","1.0.1","1.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40301.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N"}]}