CVE-2026-132275
High 7.5No known exploitationFix availablesvglib: Exponential resource consumption via nested <use> references in svg2rlg
Vendor advisory: GHSA-555j-qj3j-c8jv
Record last updated
CVSS score
High on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
No EPSS score available
CISA remediation deadline
Not in the KEV catalog
Description
svglib reads SVG files and converts them to other formats. Prior to 2.3.1, the svg2rlg() renderer recursively expands nested SVG 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.
Weakness: CWE-400, CWE-776
Patching and mitigation
- Patch status
- Fix available (source: GitHub Advisory Database)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| deeplook | svglib | < 2.3.1 | Not documented | CVE Program |
| pip | svglib | all versions up to and including 2.3.0 | 2.3.1 | GitHub Advisory Database |
Timeline
Disclosure
CVE record published by GitHub_M
Source: CVE Program (opens in a new tab)
Patch
Fix documented by GitHub Advisory Database
Vendor guidance and references
- GitHub Advisory GHSA-555j-qj3j-c8jv (opens in a new tab)github-advisory
- https://github.com/deeplook/svglib/commit/7380d3c3836940fd75f8e203fff80077b7d5a425 (opens in a new tab)x_refsource_misc
- https://github.com/deeplook/svglib/releases/tag/v2.3.1 (opens in a new tab)x_refsource_misc
- https://github.com/deeplook/svglib/security/advisories/GHSA-555j-qj3j-c8jv (opens in a new tab)x_refsource_confirm