Cross-Site Scripting Vulnerability in PHP SVG/XML Sanitizer by Daryll Doyle
CVE-2025-55166

5.1MEDIUM

Key Information:

Vendor
CVE Published:
12 August 2025

What is CVE-2025-55166?

The PHP SVG/XML sanitizer prior to version 0.22.0 contains a flaw in the cleanXlinkHrefs method, which inadequately handles attribute names, checking only for lowercase. This oversight enables attackers to potentially execute cross-site scripting attacks or link to unauthorized external domains. The sanitization mechanism has been enhanced in version 0.22.0 to address this risk, ensuring more robust protection against XSS threats.

Affected Version(s)

svg-sanitizer < 0.22.0

References

CVSS V4

Score:
5.1
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.