Quadratic CPU exhaustion in svg-sanitizer PHP tag stripping
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-407.
Summary
svg-sanitizer from 0.5.3 before 1.1.0 contains a denial of service flaw in Sanitizer::sanitize() that repeatedly rescans the whole input while stripping PHP tags (CWE-407). An unauthenticated attacker can upload an SVG with many overlapping PHP tag openers and closers, forcing quadratic preg_replace passes that exhaust worker CPU for minutes. The CVSS 4.0 base score is 8.7 (HIGH), with impact limited to availability. CISA SSVC rates exploitation at the proof-of-concept level.
Written with Claude Haiku 5.5 from the sources below · 2026-11-02
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| darylldoyle | svg-sanitizer | 0.5.3 to before 1.1.0 | 1.1.0 | Patch available | CNA |
- svg-sanitizer Vendordarylldoyle Affected 0.5.3 to before 1.1.0 Fixed in 1.1.0 Patch available CNA
Remediation
Upgrade svg-sanitizer to version 1.1.0 or later, which fixes the issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-02
- Fix · CNA svg-sanitizer (darylldoyle) Fixed in 1.1.0
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
darylldoyle svg-sanitizer 1.1.0
2 records Highest priority Priority HIGH 1 HIGH, 1 LOW
Other records, highest priority first
- TI-2026-81117 Uncaught LogicException in svg-sanitizer sanitize() enables denial of servicePriority LOW 36
Timeline
- 2026-10-27 Threatist record created from CVE-2026-117540
- 2026-10-27 Alias added: GHSA-5fhv-8j9p-2v94
- 2026-10-28 Priority changed: MEDIUM → LOW
- 2026-11-02 CISA SSVC decision points changed
- 2026-11-02 Priority changed: LOW → HIGH
References
More darylldoyle vulnerabilities
- TI-2026-84327 svg-sanitizer ReDoS and Fail-Open via image-set CSS Stripping CVSS 4.0HIGH 8.2
- TI-2026-74075 Mixed-case xlink:HrEf bypasses use nesting limit in svg-sanitizer CVSS 3.1MEDIUM 6.5
- TI-2026-69645 Denial of service in enshrined/svg-sanitize via crafted SVG DTD CVSS 3.1MEDIUM 6.5
- TI-2026-84328 Incomplete url() filtering in svg-sanitizer allows remote URL requests CVSS 4.0MEDIUM 5.3
- TI-2026-81115 darylldoyle svg-sanitizer CSS Injection and Remote Reference Bypass CVSS 4.0MEDIUM 5.1
- TI-2025-34848 svg-sanitizer By-Passing Attribute Sanitization CVSS 4.0MEDIUM 5.1
Sources
- CVE-2026-117540 · CVE Program
- CVE-2026-117540 · NVD
- FIRST EPSS
- GHSA-5fhv-8j9p-2v94 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences