rhukster/dom-sanitizer: SVG <style> tag allows CSS injection via unfiltered url() and @import directives
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| rhukster | dom-sanitizer | before 1.0.10 | 1.0.10 | Patch available | CNA |
| — | rhukster/dom-sanitizer (Packagist) | before 1.0.10 | 1.0.10 | Patch available | GHSA-93vf-569f-22cq |
- dom-sanitizer Vendorrhukster Affected before 1.0.10 Fixed in 1.0.10 Patch available CNA
- rhukster/dom-sanitizer (Packagist) Vendor— Affected before 1.0.10 Fixed in 1.0.10 Patch available GHSA-93vf-569f-22cq
Remediation
- Fix · CNA dom-sanitizer (rhukster) Fixed in 1.0.10
- Fix · GHSA-93vf-569f-22cq rhukster/dom-sanitizer (Packagist) Fixed in 1.0.10 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-40301
- 2026-10-03 Alias added: GHSA-93vf-569f-22cq
References
More rhukster vulnerabilities
- TI-2026-65752 rhukster dom-sanitizer SVG Sanitization DOMSanitizer.php url incomplete blacklist CVSS 4.0MEDIUM 6.9
- TI-2026-65751 rhukster dom-sanitizer URL Validation DOMSanitizer.php isDangerousUrl cross site scripting CVSS 4.0MEDIUM 5.1
- TI-2026-64648 Improper input validation in rhukster dom-sanitizer CVSS 3.1MEDIUM 4.7
Sources
- CVE-2026-40301 · CVE Program
- CVE-2026-40301 · NVD
- FIRST EPSS
- GHSA-93vf-569f-22cq · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences