{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-40301","id":"CVE-2026-40301","title":"rhukster/dom-sanitizer: SVG <style> tag allows CSS injection via unfiltered url() and @import directives","description":"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.","descriptionLong":"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.","published":"2026-04-17T20:51:37.226Z","updated":"2026-10-28T02:30:20.901808382Z","reserved":"2026-04-10T20:22:44.036Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["rhukster dom-sanitizer"],"affectedProducts":[{"vendor":"rhukster","product":"dom-sanitizer","defaultStatus":null,"versions":[{"version":"< 1.0.10","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"rhukster/dom-sanitizer","purl":"pkg:composer/rhukster/dom-sanitizer","ranges":["<1.0.10"],"fixed":["1.0.10"],"advisory":"GHSA-93vf-569f-22cq"}],"cwes":["CWE-79"],"aliases":["GHSA-93vf-569f-22cq"],"references":[{"url":"https://github.com/rhukster/dom-sanitizer/security/advisories/GHSA-93vf-569f-22cq","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/rhukster/dom-sanitizer/commit/49a98046b708a4c92f754f5b0ef1720bb85142e2","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/rhukster/dom-sanitizer/releases/tag/1.0.10","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40301.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40301","tags":["advisory"]},{"url":"https://github.com/rhukster/dom-sanitizer","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00328,"epssPercentile":0.26385,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-40301","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40301","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-40301","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-93vf-569f-22cq","ok":true,"note":"GHSA-93vf-569f-22cq"},{"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-40301","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}