CVE 5.1 MEDIUM

svg-sanitizer By-Passing Attribute Sanitization_CVE-2025-55166

5.1 / 10
MEDIUM
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

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.

Basic Information

ID CVE-2025-55166
Source GitHub_M
Published Aug 12, 2025 at 16:25
Modified Aug 12, 2025 at 17:48

Affected Product

Vendor darylldoyle
Product svg-sanitizer
Version < 0.22.0
Affected Versions darylldoyle svg-sanitizer < 0.22.0

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.