CVE-2026-40301
MediumCVSS 4.7Exploitation Probability (EPSS)
Low risk25th percentile - higher than 25% of all known CVEs
Summary
DOMSanitizer (PHP 7.3+) before 1.0.10 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.
Risk Assessment
This can lead to information leakage (e.g., IP addresses, headers) and enable SSRF or user tracking. Organizations rendering untrusted SVG are exposed to uncontrolled outbound requests.
Recommendation
Update DOMSanitizer to version 1.0.10 or later. Until then, consider blocking external references in SVG or filtering <style> elements.
Other vulnerabilities in DOMSanitizer
Original NVD description (English source)
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.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

