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

High 8.7 Published Updated
Exploited in the wild
Not known
Fix
None listed

What is CVE-2026-117540?

CVE-2026-117540 is a high-severity vulnerability in darylldoyle svg-sanitizer, published on 27 Oct 2026.

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

Weakness: CWE-407

Which versions are affected by CVE-2026-117540?

How do I fix CVE-2026-117540?

No fix has been published for CVE-2026-117540 yet. Limit exposure of the affected software until one is available.

Is CVE-2026-117540 being exploited?

There is no known exploitation of CVE-2026-117540 in the wild and no public exploit code.

Sources

Also known as GHSA-2v7c-jx29-jprp, GHSA-5fhv-8j9p-2v94.

Is CVE-2026-117540 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free