CVE-2025-55166: darylldoyle svg-sanitizer · Cross-site Scripting
Affects darylldoyle svg-sanitizerSource CVE Database V5
Not known to be exploited · CVSS 5.1 Medium : upgrade to 0.22.0 when convenient.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 43% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.22.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 12 Aug 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade darylldoyle svg-sanitizer to 0.22.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| darylldoyle svg-sanitizer | Affected
| Fixed in
|
AI-suggested
- Immediate upgrade of svg-sanitizer to version 0.22.0 or later to ensure the sanitization logic correctly handles attribute name casing and prevents bypasses.
- Implement additional server-side validation and sanitization of SVG files beyond relying solely on svg-sanitizer, such as using multiple sanitization layers or alternative libraries with robust security track records.
- Employ Content Security Policy (CSP) headers to restrict script execution and mitigate the impact of potential XSS attacks originating from SVG content.
- Monitor and log SVG file uploads and usage patterns to detect anomalous or suspicious activity indicative of exploitation attempts.
- Educate developers and security teams about the risks of improper SVG sanitization and encourage secure coding practices when handling user-generated content.
- For web applications, consider disabling or restricting SVG uploads if not strictly necessary, or convert SVGs to safer formats after sanitization.
- Conduct regular security assessments and penetration testing focusing on file upload and rendering functionalities to identify similar weaknesses.
- Ensure incident response plans include procedures for handling XSS incidents and potential data breaches stemming from such vulnerabilities.
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.