Medium severity · published Apr 17, 2026
CVE-2026-40301
rhukster/dom-sanitizer: SVG <style> tag allows CSS injection via unfiltered url() and @import directives
4.7
CVSS
0.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
None
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 25% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DO
dom-sanitizer · rhukster
< 1.0.10 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-40301
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-40301
github.com
https://github.com/rhukster/dom-sanitizer/commit/49a98046b708a4c92f754f5b0ef1720bb85142e2
github.com
https://github.com/rhukster/dom-sanitizer/releases/tag/1.0.10
github.com
https://github.com/rhukster/dom-sanitizer/security/advisories/GHSA-93vf-569f-22cq
More from dom-sanitizer
7.3
CVE-2026-103687
rhukster dom-sanitizer SVG Sanitization DOMSanitizer.php url incomplete blacklist
4.7
CVE-2026-100370
DOMSanitizer - Incomplete data: URL Sanitization in DOMSanitizer::isDangerousUrl() Allows Base64-Encoded Payloads to Bypass href and xlink:href Validation
3.5
CVE-2026-103686
rhukster dom-sanitizer URL Validation DOMSanitizer.php isDangerousUrl cross site scripting
