CVE-2026-40301
MEDIUMrhukster/dom-sanitizer: SVG <style> tag allows CSS injection via unfiltered url() and @import directives
Title source: cnaDescription
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.
Scores
CVSS v3
4.7
EPSS
0.0003
EPSS Percentile
9.0%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
Details
CWE
CWE-79
Status
published
Products (1)
rhukster/dom-sanitizer
< 1.0.10
Published
Apr 17, 2026
Tracked Since
Apr 18, 2026