CVE-2025-55166

svg-sanitizer By-Passing Attribute Sanitization

Published Aug 12, 2025 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-24263 svg-sanitizer Bypasses Attribute Sanitization
Github GHSA Github GHSA GHSA-22wq-q86m-83fh svg-sanitizer Bypasses Attribute Sanitization
History
Type Values Removed Values Added
First Time appeared Svg-sanitizer Project
Svg-sanitizer Project svg-sanitizer
Vendors & Products Svg-sanitizer Project
Svg-sanitizer Project svg-sanitizer
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title svg-sanitizer By-Passing Attribute Sanitization
Weaknesses CWE-601
CWE-79
References
Metrics cvssV4_0

{'score': 5.1, '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'}

Weaknesses
  • CWE-601

    URL Redirection to Untrusted Site ('Open Redirect')

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 12, 2025, 5:48 PM
Reserved
Aug 7, 2025, 6:27 PM
Status
Deferred
Published
Aug 12, 2025, 5:15 PM
Modified
Jun 17, 2026, 9:41 AM