CVE-2026-40301
CVE-2026-40301 · rhukster/dom-sanitizer: SVG <style> tag allows CSS injection via unfiltered url() and @import directives
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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 4.7 · Medium · EPSS 0.3% · Fix available
- Published
- Updated
Stack: php
Affected products and versions
dom-sanitizer
- Versions
- < 1.0.10: Affected
No fix published
rhukster/dom-sanitizer Packagist
- Versions
- 1.0.0
- 1.0.1
- 1.0.2
- 1.0.3
- 1.0.4
- 1.0.5
- 1.0.6
- 1.0.7
- 1.0.8
- 1.0.9
- Affected ranges
- ECOSYSTEM: < 1.0.10
Update to 1.0.10