CVE-2026-117540 svg-sanitizer before 1.1.0 Quadratic CPU-Exhaustion DoS via PHP-Tag Stripping Loop
HighCVSS 8.7
EPSS 0.35%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- PHP
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| darylldoyle svg-sanitizer | >= 0.5.3, < 1.1.0 | 1.1.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| darylldoyle svg-sanitizer | >= 0.5.3, < 1.1.0 | 1.1.0 |
References
- GitHub Security Advisory (GHSA-2v7c-jx29-jprp) exploit vendor-advisory
- github.com patch
- VulnCheck Advisory: svg-sanitizer before 1.1.0 Quadratic CPU-Exhaustion DoS via PHP-Tag Stripping Loop third-party-advisory
- ENISA EUVD EUVD-2026-110805 third-party-advisory