Skip to main content
← All vulnerabilities
CVE-2026-117540

svg-sanitizer before 1.1.0 Quadratic CPU-Exhaustion DoS via PHP-Tag Stripping Loop

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.1.0
None on Exploit-DB, Metasploit or GitHub

Summary

The svg-sanitizer PHP library, which is used to clean SVG files before they are processed or displayed, is affected. A remote, unauthenticated attacker can submit a specially crafted SVG that makes the sanitizer consume excessive CPU for minutes, potentially making the application unresponsive.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original description

svg-sanitizer from 0.5.3 before 1.1.0 contains a denial of service vulnerability in Sanitizer::sanitize() that repeatedly rescans the whole input while stripping PHP tags. Unauthenticated attackers can upload SVGs with many overlapping PHP tag openers and closers, forcing quadratic preg_replace passes that exhaust worker CPU for minutes.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • darylldoyle svg-sanitizer

    From 0.5.3 · fixed in 1.1.0

References 3

GitHub · darylldoyle/svg-sanitizer

vulncheck.com