Skip to main content
← All vulnerabilities
CVE-2026-40301GHSA-93VF-569F-22CQ

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.0.10
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • rhukster dom-sanitizer

    fixed in 1.0.10

  • rhukster/dom-sanitizerPackagist

    fixed in 1.0.10

References 3

GitHub · rhukster/dom-sanitizer