CVE-2026-132275: svglib: Exponential resource consumption via nested <use> references in svg2rlg
Vulnerability summary
CVE-2026-132275 is a high (CVSS 7.5) Uncontrolled Resource Consumption vulnerability in deeplook svglib.
Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS not yet published
Source freshness unavailable
How is this decided?Timeline
- 20-11-2026PublishedVulnerability first disclosed.
- 20-11-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
No EPSS score has been published for this record yet.
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-400Uncontrolled Resource ConsumptionThe product does not properly control the allocation and maintenance of a limited resource.
- CWE-776Improper Restriction of Recursive Entity References in DTDsThe product uses XML documents and allows their structure to be defined with a Document Type Definition (DTD), but it does not properly control the number of recursive definitions of entities.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Deeplook1 product
- svglib< 2.3.1
1 vendor · 1 product
References
3 links- github.com/deeplook/svglib/security/advisories/GHSA-555j-qj3j-c8jvX Refsource CONFIRM
- github.com/deeplook/svglib/releases/tag/v2.3.1X Refsource MISC