DOM/SVG Sanitization Flaws in DOMSanitizer for PHP by Rhukster
CVE-2026-40301

4.7MEDIUM

Key Information:

Vendor

Rhukster

Vendor
CVE Published:
17 April 2026

What is CVE-2026-40301?

The DOMSanitizer is a PHP library designed to provide security against potential threats emanating from SVG content. However, prior to version 1.0.10, it permits elements within SVG content without scrutinizing their accompanying text. This oversight allows malicious CSS constructs such as url() references and @import rules to bypass filtering, which can lead to vulnerable browsers making HTTP requests to potentially harmful external servers upon rendering the sanitized SVG. The development team has since addressed this issue and released an updated version to enhance security.

Affected Version(s)

dom-sanitizer < 1.0.10

References

CVSS V3.1

Score:
4.7
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
None
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Changed

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.