CVE Catalog

CVE-2026-117540

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.35%

29th percentile - higher than 29% of all known CVEs

Summary

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.

Risk Assessment

An attacker can remotely cause CPU exhaustion, making the service unavailable to legitimate users.

Recommendation

Update the svg-sanitizer library to version 1.1.0 or later. Until patched, consider limiting the size and complexity of uploaded SVG files.

Other vulnerabilities in svg-sanitizer

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS