Medium severityOSV Advisory· Published Aug 12, 2025· Updated Apr 15, 2026
CVE-2025-55166
CVE-2025-55166
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
enshrined/svg-sanitizePackagist | < 0.22.0 | 0.22.0 |
Affected products
2- Range: 0.1.0, 0.1.1, 0.1.2, …
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-22wq-q86m-83fhghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-55166ghsaADVISORY
- github.com/darylldoyle/svg-sanitizer/blob/0.21.0/src/Sanitizer.phpghsaWEB
- github.com/darylldoyle/svg-sanitizer/commit/0afa95ea74be155a7bcd6c6fb60c276c39984500ghsaWEB
- github.com/darylldoyle/svg-sanitizer/commit/5a0a1eaf0c6b0b540dc945fe30c93cf106b357c1nvdWEB
- github.com/darylldoyle/svg-sanitizer/releases/tag/0.22.0ghsaWEB
- github.com/darylldoyle/svg-sanitizer/security/advisories/GHSA-22wq-q86m-83fhnvdWEB
News mentions
0No linked articles in our index yet.