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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| deeplook | svglib | < 2.3.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-svglib | No fix yet | — |
| Debian 13 | python-svglib | No fix yet | — |
| Debian 12 | python-svglib | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | python-svglib | No fix yet | — |
| Ubuntu 26.04 LTS | python-svglib | No fix yet | — |
| Ubuntu 24.04 LTS | python-svglib | No fix yet | — |
| Ubuntu 22.04 LTS | python-svglib | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-svglib | 2.4.0-1.1 | openSUSE-SU-2026:12699-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
googlesky/CVE-2026-132275 ★ 0 · Nov 21, 2026
svglib <=2.3.0: svg2rlg expanded <use> with no total limit — a ~1.4KB nested-use SVG drives 340k+ node clones, ~120 s CPU per file (SVG billion-laughs, like librsvg CVE-2019-20446). Real svglib 2.3.0…
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | svglib | < 2.3.1 | 2.3.1 | GHSA-555j-qj3j-c8jv |
Advisories 1
- openSUSE-SU-2026:12699-1 python313-svglib-2.4.0-1.1 on GA media SUSE / openSUSE Security Updates · Nov 27, 2026