CVE-2025-55166 MEDIUM

CVE-2025-55166: svg-sanitizer By-Passing Attribute Sanitization

Vendor Darylldoyle
Product svg-sanitizer
Weakness CWE-79 · XSS
Published August 12, 2025
Last update August 12, 2025

CVSS base score

5.1/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction
Confidentiality
Integrity

CVSS 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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

August 12, 2025 CVE published
August 12, 2025 Record updated

Related vulnerabilities

04Related CVE