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.
Published: 2025-08-12
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

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

Tue, 12 Aug 2025 20:00:00 +0000

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

Tue, 12 Aug 2025 18:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 12 Aug 2025 16:45:00 +0000

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'}


Subscriptions

Svg-sanitizer Project Svg-sanitizer
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2025-08-12T17:48:05.000Z

Reserved: 2025-08-07T18:27:23.307Z

Link: CVE-2025-55166

cve-icon Vulnrichment

Updated: 2025-08-12T17:47:55.276Z

cve-icon NVD

Status : Deferred

Published: 2025-08-12T17:15:39.667

Modified: 2026-04-15T00:35:42.020

Link: CVE-2025-55166

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2025-08-12T19:53:19Z

Weaknesses