Skip to main content
VulnerabilityPublished

CVE-2026-132275: svglib · Exponential resource consumption via nested <use> references in svg2rlg

Affects svglibSource GCVE Database

0
Compare
Authoritative record:CVE-2026-132275· High 7.5

Not known to be exploited · CVSS 7.5 High : upgrade to 2.3.1 soon.

Data as of 21 Nov 2026, 00:31 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.17.5
Patch
Available – fixed in 2.3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 20 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 20 Nov 2026.

What to do

Upgrade svglib to 2.3.1.

Affected software

ProductAffectedFixed in
PyPIsvglibAffected
  • <2.3.1
Fixed in
  • 2.3.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available in svglib version 2.3.1 that limits the number of <use> expansions during SVG rendering to prevent exponential resource consumption. Users should upgrade to svglib 2.3.1 or later.

Description

The svglib library's svg2rlg() function expands SVG <use> references recursively without limiting the total expansions, except for direct cycles. This allows crafted SVGs with nested <use> elements to cause exponential growth in rendering work, leading to high CPU and memory usage. This vulnerability can cause denial of service when rendering untrusted SVG content, including via xhtml2pdf which depends on svglib. A fix is available in svglib 2.3.1 that limits the number of <use> expansions to prevent resource exhaustion.

References

Community reviews

Loading reviews…