CVE-2026-132275: svglib · Exponential resource consumption via nested <use> references in svg2rlg
Affects svglibSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 2.3.1 soon.
Data as of 21 Nov 2026, 00:31 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 7.5 |
|---|
- Patch
- Available – fixed in 2.3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 20 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 20 Nov 2026.
What to do
Upgrade svglib to 2.3.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIsvglib | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in svglib version 2.3.1 that limits the number of <use> expansions during SVG rendering to prevent exponential resource consumption. Users should upgrade to svglib 2.3.1 or later.
Description
The svglib library's svg2rlg() function expands SVG <use> references recursively without limiting the total expansions, except for direct cycles. This allows crafted SVGs with nested <use> elements to cause exponential growth in rendering work, leading to high CPU and memory usage. This vulnerability can cause denial of service when rendering untrusted SVG content, including via xhtml2pdf which depends on svglib. A fix is available in svglib 2.3.1 that limits the number of <use> expansions to prevent resource exhaustion.
References
- github.com/deeplook/svglib/security/advisories/GHSA-555j-qj3j-c8jv (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-132275 (opens in a new tab)
- github.com/deeplook/svglib/commit/7380d3c3836940fd75f8e203fff80077b7d5a425 (opens in a new tab)
- github.com/deeplook/svglib (opens in a new tab)
- github.com/deeplook/svglib/releases/tag/v2.3.1 (opens in a new tab)