HIGHCVSS v3.1 7.5Vulnerability

CVE-2026-132275

# Summary `svg2rlg()` expands `<use>` references without any limit on the total number of expansions. Only direct cycles are rejected (`CircularRefError`). A group containing N `<use>` elements that point to another such group multiplies the work by N per nesting level, so an SVG of about 1.4 KB makes svglib clone and render over 100,000 nodes, taking tens of seconds of CPU time and hundreds of MiB of memory. Each additional level adds about 245 bytes to the document and multiplies time by ~10. This is the SVG `<use>` variant of the XML "billion laughs" attack (the same class as librsvg CVE-2019-20446). # Details `SvgRenderer.renderUse()` in `src/svglib/svglib.py`: ```python try: item = self.xlink_href_target(node, group=group) except CircularRefError: node.parent.etree_element.remove(node.etree_element) return group ... if len(node.getchildren()) == 0: # Append a copy of the referenced node as the <use> child (if not # already done) node.append(copy.deepcopy(item)) self.renderNode(list(node.iter_children())[-1], parent=group) ``` The referenced node is deep-copied under the `<use>` element and rendered. Any `<use>` elements inside the copied subtree go through `renderUse()` again. `xlink_href_target()` raises `CircularRefError` only for a direct cycle, so a reference DAG with fan-out is expanded fully: `fan ** levels` renders. Payload shape (fan = 10, levels = 5): ```xml <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="10" height="10"> <defs> <rect id="l0" width="1" height="1"/> <g id="l1"><use xlink:href="#l0"/> ... 10 times ... </g> <g id="l2"><use xlink:href="#l1"/> ... 10 times ... </g> ... <g id="l5"><use xlink:href="#l4"/> ... 10 times ... </g> </defs> <use xlink:href="#l5"/> </svg> ``` # Impact Denial of service (CPU and memory exhaustion) for any application that renders SVG from an untrusted source with svglib: thumbnail/preview generation, SVG-to-PDF conve

Properties

Severity
high
Summary
svglib: Exponential resource consumption via nested <use> references in svg2rlg
Nvd fetched at
2026-11-22T12:30:49.958423+00:00
Epss score
0.0106
Cvss severity
HIGH
Cvss score
7.5
Retrieved at
2026-11-22T12:32:26+00:00
Ghsa published
2026-11-20T23:47:58Z
Source url
https://github.com/advisories/GHSA-555j-qj3j-c8jv
Ghsa updated
2026-11-20T23:47:59Z
Ghsa id
GHSA-555j-qj3j-c8jv
Last source
FIRST EPSS
Score
7.5
Cvss version
3.1
Cve id
CVE-2026-132275
Cvss vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
First seen by Signal
2026-11-20T19:45:57+00:00
Name
CVE-2026-132275
Is ghsa only
false
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Related Entities (4)

AFFECTS (1)

→[Software]pip/svglib

VULNERABLE_TO (1)

←[Software]pip/svglib

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-132275 (CVSS v3.1 7.5) — Ninja Signal Threat Intelligence | Ninja Signal