Deeplook svglib
svglib: Exponential resource consumption via nested <use> references in svg2rlg
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.3.1
Fixed in 2.3.1
Mitigation
Upgrade svglib to 2.3.1 or later.
References
- Vendor advisory github.com/deeplook/svglib/security/advisories…
- Patch github.com/deeplook/svglib/commit/7380d3c38369…
- Release notes github.com/deeplook/svglib/releases/tag/v2.3.1
Timeline
Days relative to CVE publicationFirst public PoC 8 h after publication; not in CISA KEV. First PoC: googlesky/CVE-2026-132275 (created 21 Nov 2026, found by us: 21 Nov 2026).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| googlesky/CVE-2026-132275 | 21 Nov 2026 +8 h | 21 Nov 2026 | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.