What’s Vulnerable › Vulnerabilities
CVE-2026-40301: rhukster/dom-sanitizer: SVG <style> tag allows CSS injection via unfiltered url() and @import directives
- Severity: medium (CVSS 4.7 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-04-17 · updated 2026-10-26
- Weakness: CWE-79
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.
Affected products
- rhukster dom-sanitizer: before 1.0.10
References
- https://github.com/rhukster/dom-sanitizer/commit/49a98046b708a4c92f754f5b0ef1720bb85142e2
- https://github.com/rhukster/dom-sanitizer/releases/tag/1.0.10
- https://github.com/rhukster/dom-sanitizer/security/advisories/GHSA-93vf-569f-22cq
Get alerted when CVE-2026-40301 or the next vulnerability affects your stack