CVE-2026-40301

MEDIUM CVSS 3.1: 4.7 EPSS 0.33%
Updated Oct 27, 2026
PHP
Parameter Value
CVSS 4.7 (MEDIUM)
Type CWE-79 (Cross-Site Scripting (XSS))
Vendor PHP
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
Required
User action required

Impact Assessment

Confidentiality
Low
Partial data leak
Integrity
None
No data modification
Availability
None
No disruption

CVSS Vector v3.1