Vulnerability Description
savg-sanitizer is a PHP SVG/XML sanitizer. Prior to version 0.22.0, the sanitization logic in the cleanXlinkHrefs method only searches for lower-case attribute name, which allows to by-pass the isHrefSafeValue check. As a result this allows cross-site scripting or linking to external domains. This issue has been patched in version 0.22.0.
Related Weaknesses (CWE)
References
- https://github.com/darylldoyle/svg-sanitizer/commit/5a0a1eaf0c6b0b540dc945fe30c9
- https://github.com/darylldoyle/svg-sanitizer/security/advisories/GHSA-22wq-q86m-
FAQ
What is CVE-2025-55166?
CVE-2025-55166 is a documented vulnerability. savg-sanitizer is a PHP SVG/XML sanitizer. Prior to version 0.22.0, the sanitization logic in the cleanXlinkHrefs method only searches for lower-case attribute name, which allows to by-pass the isHref...
How severe is CVE-2025-55166?
CVSS scoring is not yet available for CVE-2025-55166. Check NVD for updates.
Is there a patch for CVE-2025-55166?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.