Resource Exhaustion Affecting python-svglib package, versions *


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
1.06% (66th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-PYTHONSVGLIB-22958328
  • published25 Nov 2026
  • disclosed20 Nov 2026

Introduced: 20 Nov 2026

NewCVE-2026-132275  (opens in a new tab)
CWE-400  (opens in a new tab)
CWE-776  (opens in a new tab)

How to fix?

There is no fixed version for Echo:latest python-svglib.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python-svglib package and not the python-svglib package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

svglib reads SVG files and converts them to other formats. Prior to 2.3.1, the svg2rlg() renderer recursively expands nested SVG <use> references by deep-copying each referenced subtree; SvgRenderer.renderUse() in src/svglib/svglib.py calls xlink_href_target(), which rejects direct cycles but permits acyclic reference graphs with repeated fan-out. A small attacker-controlled SVG can therefore trigger exponentially increasing node expansion, consuming excessive CPU and memory in any application that renders it without a non-default option; HTML-to-PDF workflows using xhtml2pdf can reach the same renderer when an embedded data:image/svg+xml image in an HTML img element is passed to pisa.CreatePDF(). This issue is fixed in 2.3.1.