CVE-2026-132275

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.
Configurations

No configuration.

History

20 Nov 2026, 19:18

Type Values Removed Values Added
References () https://github.com/deeplook/svglib/security/advisories/GHSA-555j-qj3j-c8jv - () https://github.com/deeplook/svglib/security/advisories/GHSA-555j-qj3j-c8jv -

20 Nov 2026, 17:18

Type Values Removed Values Added
New CVE

Information

Published : 2026-11-20 17:18

Updated : 2026-11-20 19:18


NVD link : CVE-2026-132275

Mitre link : CVE-2026-132275

CVE.ORG link : CVE-2026-132275


JSON object : View

Products Affected

No product.

CWE
CWE-400

Uncontrolled Resource Consumption

CWE-776

Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')