CVE-2025-55166 Details
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.
A cross-site scripting vulnerability has been identified in the Darylldoyle Svg-Sanitizer package, specifically in versions prior to 0.22.0. The issue arises in the 'cleanXlinkHrefs' method, where the sanitization process only recognizes lower-case attribute names. This oversight allows for the bypassing of the 'isHrefSafeValue' check, potentially leading to the execution of malicious scripts or the creation of links to external domains.
Users can upgrade to Darylldoyle Svg-Sanitizer version 0.22.0 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 12, 2025CISA-ADP
Assessed Aug 12, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/darylldoyle/svg-sanitizer/commit/5a0a1eaf0c6b0b540dc945fe30c93cf106b357c1 | [email protected] | Source CodeVendor |
| https://github.com/darylldoyle/svg-sanitizer/security/advisories/GHSA-22wq-q86m-83fh | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-601 | URL Redirection to Untrusted Site ('Open Redirect') | [email protected] |
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| darylldoyle/svg-sanitizer | < 0.22.0 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 12, 2025 | New CVE Received | [email protected] |
Volerion