MEDIUM
svg-sanitizer By-Passing Attribute Sanitization
Published Aug 12, 2025
5.1
MEDIUMCVSS 4.0
EPSS 0.45%
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
-
- Version < 0.22.0StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Darylldoyle | Svg-Sanitizer | n/a |
|
No data.
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Weaknesses (2)
References (8)
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-24263 Advisory
- https://github.com/advisories/GHSA-22wq-q86m-83fh Advisory
- https://github.com/darylldoyle/svg-sanitizer/blob/0.21.0/src/Sanitizer.php#L454-L481
- https://github.com/darylldoyle/svg-sanitizer/commit/0afa95ea74be155a7bcd6c6fb60c276c39984500
- https://github.com/darylldoyle/svg-sanitizer/commit/5a0a1eaf0c6b0b540dc945fe30c93cf106b357c1 x_refsource_MISC
- https://github.com/darylldoyle/svg-sanitizer/releases/tag/0.22.0
- https://github.com/darylldoyle/svg-sanitizer/security/advisories/GHSA-22wq-q86m-83fh x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2025-55166
Change history (0)
No recorded changes yet.
Sources
CVE.org / MITRE
Status PUBLISHED
Assigner GitHub_M
Published Aug 12, 2025
Updated Aug 12, 2025
Reserved Aug 7, 2025
Link CVE-2025-55166
CISA Vulnrichment
Updated Aug 12, 2025
ENISA EUVD
EUVD-2025-24263 GHSA-22WQ-Q86M-83FH Assigner GitHub_M
Published Aug 12, 2025
Updated Aug 12, 2025
Exploited since n/a
Link EUVD-2025-24263