CVE-2026-132275
Published:November 20, 2026
Updated:November 23, 2026
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 Packages
svglib (CONDA):
Affected version(s) >=0.8.1 <2.3.1 || >=1.0.0 <2.3.1 || >=2.0.0 <2.3.1Fix Suggestion:
Update to version 2.3.1svglib (CONDA):
Affected version(s) >=0.8.1 <2.3.1Fix Suggestion:
Update to version 2.3.1https://github.com/deeplook/svglib.git (GITHUB):
Affected version(s) >=v0.8.0 <v2.3.1 || >=v1.0.0 <v2.3.1 || >=v2.0b1 <v2.3.1Fix Suggestion:
Update to version v2.3.1svglib (PYTHON):
Affected version(s) >=0.8.0 <2.3.1 || >=1.0.0 <2.3.1 || >=2.0b1 <2.3.1Fix Suggestion:
Update to version 2.3.1svglib (PYTHON):
Affected version(s) >=0.6.0 <2.3.1Fix Suggestion:
Update to version 2.3.1Related Resources (6)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
EPSS
Base Score:
1.06