CVE-2026-40301: medium-severity vulnerability in rhukster dom-sanitizer
rhukster/dom-sanitizer: SVG <style> tag allows CSS injection via unfiltered url() and @import directives
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
13Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 4.7epss 0.3%
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
Affected products
rhukster · dom-sanitizerRelated CVEs — rhukster dom-sanitizer
In the same product, most dangerous first.
CVE-2026-103687MEDIUMrhukster dom-sanitizer SVG Sanitization DOMSanitizer.php url incomplete blacklistEPSS 0.4%CVE-2026-100370MEDIUMDOMSanitizer - Incomplete data: URL Sanitization in DOMSanitizer::isDangerousUrl() Allows Base64-Encoded Payloads to Bypass href and xlink:href ValidationEPSS 0.3%CVE-2026-103686MEDIUMrhukster dom-sanitizer URL Validation DOMSanitizer.php isDangerousUrl cross site scriptingEPSS 0.2%