Skip to main content
VulnerabilityPublished

CVE-2025-55166: darylldoyle svg-sanitizer · Cross-site Scripting

Affects darylldoyle svg-sanitizerSource CVE Database V5

0

Not known to be exploited · CVSS 5.1 Medium : upgrade to 0.22.0 when convenient.

Data as of 26 Oct 2026, 14:05 UTC

CVSS 4.0 base score
5.1Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 12 Aug 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
darylldoyle svg-sanitizerAffected
  • <0.22.0
Fixed in
  • 0.22.0

AI-suggested

  1. 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.
  2. 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.
  3. Employ Content Security Policy (CSP) headers to restrict script execution and mitigate the impact of potential XSS attacks originating from SVG content.
  4. Monitor and log SVG file uploads and usage patterns to detect anomalous or suspicious activity indicative of exploitation attempts.
  5. Educate developers and security teams about the risks of improper SVG sanitization and encourage secure coding practices when handling user-generated content.
  6. For web applications, consider disabling or restricting SVG uploads if not strictly necessary, or convert SVGs to safer formats after sanitization.
  7. Conduct regular security assessments and penetration testing focusing on file upload and rendering functionalities to identify similar weaknesses.
  8. 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.

References

Community reviews

Loading reviews…