Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. svglib
  4. ›
  5. CVE-2026-132275

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

November 20, 2026

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).

References

  • github.com/advisories/GHSA-555j-qj3j-c8jv
  • github.com/deeplook/svglib/commit/7380d3c3836940fd75f8e203fff80077b7d5a425
  • github.com/deeplook/svglib/releases/tag/v2.3.1
  • github.com/deeplook/svglib/security/advisories/GHSA-555j-qj3j-c8jv
  • nvd.nist.gov/vuln/detail/CVE-2026-132275

Code Behaviors & Features

Detect and mitigate CVE-2026-132275 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.3.1

Fixed versions

  • 2.3.1

Solution

Upgrade to version 2.3.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')

Source file

pypi/svglib/CVE-2026-132275.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 21 Nov 2026 12:16:50 +0000.