XSS in Darylldoyle Svg-Sanitizer

CVE-2025-55166

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.

Vulnerability class: XSS (Cross-Site Scripting)

EPSS: 0.004 (36.8th percentile) — read the EPSS interpretation.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2025-55166?
CVE-2025-55166 is a vulnerability in Darylldoyle Svg-Sanitizer, classified under Cross-site Scripting. Published 2025-08-12.
Is CVE-2025-55166 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.