CVE-2026-117540
CVE-2026-117540 · svg-sanitizer before 1.1.0 Quadratic CPU-Exhaustion DoS via PHP-Tag Stripping Loop
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 8.7 · High · Fix available
- Published
- Updated
Affected products and versions
svg-sanitizer
- Versions
- ≥ 0.5.3, < 1.1.0: Affected (semver)
- 1.1.0: Not affected (semver)
Update to 1.1.0
Original sources
- 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
- https://nvd.nist.gov/vuln/detail/CVE-2026-117540