CVE-2026-40301CWE-79

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

Medium · published April 17, 2026

CVSS v3.1
4.7
EPSS
0%
Percentile
37.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
4.7 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00438 · 37.0th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2026-04-17T20:51Z
EPSS history
Timeline
  • 17 APR 20:51Z
    rhukster/dom-sanitizer: SVG <style> tag allows CSS injection via unfiltered url() and @import directives
    cvelistv5