CVE-2025-55166
Medium
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.
SeverityMedium
CVSS5.1
Exploit probability—
ProductEnshrined/svg-sanitize
PublishedAug 12, 2025
First seenAug 12, 2025
Weakness typeCWE-79Cross-site scripting (XSS)CWE-601Open redirect
How to fix
Update
- enshrined/svg-sanitize0.22.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| enshrined/svg-sanitizePackagist | v < 0.22.0 | 0.22.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.