CVE-2026-132275

GHSA-555j-qj3j-c8jv · published 20 Nov 2026 · updated 21 Nov 2026

svglib: Exponential resource consumption via nested <use> references in svg2rlg

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in svglib 2.3.1.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
deeplook<2.3.1
pypi: svglib<2.3.1, <=2.3.02.3.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-132275 severity on Zeptric[![CVE-2026-132275](https://zeptric.io/badge/cve/CVE-2026-132275.svg)](https://zeptric.io/cve/CVE-2026-132275)