Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-132275: high-severity vulnerability (CVSS 7.5) in deeplook svglib.
What happened
Original description from the source: 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.
Why it matters
High severity, CVSS 7.5.
Affected products and versions
svglib <= 2.3.0 (fixed in 2.3.1); deeplook svglib < 2.3.1
| Product | Versions | Fixed in |
|---|---|---|
| svglib | <= 2.3.0 | 2.3.1 |
| deeplook svglib | < 2.3.1 | — |
Action recommended by the source
Upgrade to a fixed version: 2.3.1.
Fixed in: 2.3.1
Sources and references
- https://github.com/advisories/GHSA-555j-qj3j-c8jv — GHSA
- https://github.com/deeplook/svglib/security/advisories/GHSA-555j-qj3j-c8jv — GHSA
- https://nvd.nist.gov/vuln/detail/CVE-2026-132275 — GHSA
- https://github.com/deeplook/svglib/commit/7380d3c3836940fd75f8e203fff80077b7d5a425 — GHSA
- https://github.com/deeplook/svglib/releases/tag/v2.3.1 — GHSA
Weaknesses (CWE): CWE-400, CWE-776
Relevant change history
Published
Preliminary advisory published.