PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-117540 darylldoyle CVE debrief

The svg-sanitizer library, used for sanitizing SVG files, contains a denial of service vulnerability in versions from 0.5.3 to before 1.1.0. This vulnerability is caused by a quadratic CPU-exhaustion DoS via PHP-tag stripping loop in the Sanitizer::sanitize() function. An unauthenticated attacker can exploit this by uploading SVGs with many overlapping PHP tag openers and closers, leading to potential CPU exhaustion and denial of service. Defenders and administrators using affected versions should assess exposure and prioritize remediation due to the high severity of the vulnerability.

Vendor
darylldoyle
Product
svg-sanitizer
CVSS
HIGH 8.7
CISA KEV
Not listed in stored evidence
Original CVE published
2026-10-27
Original CVE updated
2026-11-02
Advisory published
2026-10-27
Advisory updated
2026-11-02

Who should care

Defenders and administrators using svg-sanitizer versions from 0.5.3 to before 1.1.0 should assess exposure and prioritize remediation due to the high severity of the vulnerability.

Why it matters

CVE-2026-117540 is a high-severity denial of service vulnerability in svg-sanitizer that can be exploited by uploading malicious SVG files, leading to potential CPU exhaustion and denial of service. Defenders and administrators using affected versions should prioritize remediation and implement input validation and sanitization for SVG files.

  • Potential for CPU exhaustion leading to denial of service
  • Need for input validation and sanitization for SVG files
  • Importance of monitoring for suspicious SVG file uploads and CPU usage

Technical summary

The svg-sanitizer library from version 0.5.3 to before 1.1.0 is vulnerable to a denial of service attack due to a quadratic CPU-exhaustion DoS via PHP-tag stripping loop in the Sanitizer::sanitize() function. This can be exploited by uploading SVGs with many overlapping PHP tag openers and closers, causing the function to repeatedly rescan the whole input and exhaust worker CPU for minutes. The vulnerability can be mitigated by updating to version 1.1.0 or later, implementing input validation and sanitization for SVG files, and monitoring for suspicious SVG file uploads and CPU usage.

Defensive priority

High

Recommended defensive actions

  • Review and update svg-sanitizer to version 1.1.0 or later
  • Implement input validation and sanitization for SVG files
  • Monitor for suspicious SVG file uploads and CPU usage
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
  • Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance
  • Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review

Evidence notes

The CVE record and source item provide details on the denial of service vulnerability in svg-sanitizer from 0.5.3 before 1.1.0. The vulnerability is caused by a quadratic CPU-exhaustion DoS via PHP-tag stripping loop in the Sanitizer::sanitize() function.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-117540 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-117540

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-117540 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-117540

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • svg-sanitizer before 1.1.0 Quadratic CPU-Exhaustion DoS via PHP-Tag Stripping Loop

    Unverified legacy reference

    URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/117xxx/CVE-2026-117540.json

    cve_program_cvelist_v5

  • Source reference

    Unverified legacy reference

    URL: https://github.com/darylldoyle/svg-sanitizer/security/advisories/GHSA-2v7c-jx29-jprp

    Supplemental source - vendor-advisory

  • Source reference

    Unverified legacy reference

    URL: https://github.com/darylldoyle/svg-sanitizer/commit/9ba9001493f5da737759303f13bd965ebdaa778c

    Supplemental source - patch

  • Source reference

    Unverified legacy reference

    URL: https://www.vulncheck.com/advisories/svg-sanitizer-before-1.1.0-quadratic-cpu-exhaustion-dos-via-php-tag-stripping-loop

    Supplemental source - third-party-advisory

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.