Cross-Site Scripting Vulnerability in PHP SVG/XML Sanitizer by Daryll Doyle
CVE-2025-55166
5.1MEDIUM
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
