CVE-2025-55166

Medium

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.

SeverityMedium
CVSS5.1
Exploit probability—
ProductEnshrined/svg-sanitize
PublishedAug 12, 2025
First seenAug 12, 2025

How to fix

Update
  • enshrined/svg-sanitize0.22.0 or later

Affected products

ProductAffected versionsFixed in
enshrined/svg-sanitizePackagistv < 0.22.00.22.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2025-55166 · Enshrined/svg-sanitize · Dark Radar