Skip to content
OpenAdvisories
Medium · 5.1 CVE-2025-55166 EUVD-2025-24263GHSA-22wq-q86m-83fh

svg-sanitizer By-Passing Attribute Sanitization

Published Aug 12, 2025 · Updated Aug 12, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
darylldoyle svg-sanitizer < 0.22.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist enshrined/svg-sanitize < 0.22.0 0.22.0 GHSA-22wq-q86m-83fh

Advisories 2

References