Read the docs
TI-2026-29079 Aliases CVE-2026-40301GHSA-93vf-569f-22cq

rhukster/dom-sanitizer: SVG <style> tag allows CSS injection via unfiltered url() and @import directives

Priority MEDIUM 55CWE-79Published · Updated

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

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00322 25th percentileScored 2026-11-07
Fix Fixed dom-sanitizer (rhukster): 1.0.10rhukster/dom-sanitizer (Packagist): 1.0.10

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

VendorProductAffected versionsFixed inStatusSource
rhuksterdom-sanitizerbefore 1.0.101.0.10Patch availableCNA
—rhukster/dom-sanitizer (Packagist)before 1.0.101.0.10Patch availableGHSA-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

  1. 2026-10-02 Threatist record created from CVE-2026-40301
  2. 2026-10-03 Alias added: GHSA-93vf-569f-22cq

References

  • 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