CVE-2026-117540 Details
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.
A denial-of-service vulnerability has been identified in the svg-sanitizer library, specifically in versions 0.5.3 prior to 1.1.0. The issue arises in the Sanitizer::sanitize() function, where the library removes PHP tags using a do-while loop that inefficiently rescans the entire input with each iteration. This flaw can be exploited by unauthenticated attackers who upload SVG files containing overlapping PHP tag openers and closers, causing the processing to take significantly longer and exhaust CPU resources.
Users are advised to update to svg-sanitizer version 1.1.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 27, 2026CISA-ADP
Assessed Nov 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-407 | Inefficient Algorithmic Complexity | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| darylldoyle svg-sanitizer | >= 0.5.3, <= 1.0.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 2, 2026 | CVE Modified | CISA-ADP |
| Oct 27, 2026 | New CVE Received | [email protected] |
Volerion