CVE-2026-117540
svg-sanitizer from 0.5.3 before 1.1.0 contains a denial of service …
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 now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/darylldoyle/svg-sanitizer/commit/9ba9001493f5da737759303f13bd965ebdaa778c
- github.com/darylldoyle/svg-sanitizer/security/advisories/GHSA-2v7c-jx29-jprp
- www.vulncheck.com/advisories/svg-sanitizer-before-1.1.0-quadratic-cpu-exhaustion-dos-via-p
- nvd.nist.gov/vuln/detail/CVE-2026-117540
- cve.org/CVERecord?id=CVE-2026-117540
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.