CVE-2025-55166darylldoyle svg-sanitizer
Medium 5.1 No auth needed
Follow: this CVE · darylldoyle · darylldoyle svg-sanitizer We alert you by email or Slack (account required).
- Priority
- 46
- CVSS 4.0
- 5.1
- EPSS
- —
- Auth required
- No
- Published
- Aug 12, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
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.
What to do
- Apply the vendor's security update for svg-sanitizer.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | enshrined/svg-sanitize |
< 0.22.0 |
0.22.0 |
composer require "enshrined/svg-sanitize:^0.22.0" |
Per OSV / GitHub Advisories (GHSA-22wq-q86m-83fh). Check the version in your lockfile before upgrading.
Affected products
- darylldoyle · svg-sanitizer
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.