5.1Medium

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

darylldoyle svg-sanitizer Published: (1 year ago)

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.

Weakness (CWE): CWE-79CWE-601

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
darylldoyle svg-sanitizer < 0.22.0

References and patches