Are you affected by CVE-2026-132275?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)CVE-2026-132275
svglib: svglib: Denial of Service (DoS) via nested SVG references
Overview
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.
Source: OX vulnerability database
Am I affected?
Answer a few questions about your setup. Everything stays in your browser.
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-400, CWE-776
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| PyPI | svglib | <2.3.1 | 2.3.1 |
Open a package to see all its vulnerabilities.
Operating systems · 5 fixes
debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | python-svglib | affected |
| 13 | python-svglib | affected |
| 14 | python-svglib | affected |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| python-svglib | affected |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | python313-svglib +1 | 2.4.0-1.1 | openSUSE-SU-2026:12699-1 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-132275
- github.com https://github.com/deeplook/svglib
- github.com https://github.com/deeplook/svglib/commit/7380d3c3836940fd75f8e203fff80077b7d5a425
- github.com https://github.com/deeplook/svglib/releases/tag/v2.3.1
- github.com https://github.com/deeplook/svglib/security/advisories/GHSA-555j-qj3j-c8jv
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-132275
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-132275
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.