Loading0%
SUBZER0
LIVE
Alerts

CVE-2026-132275

svglib reads SVG files and converts them to other formats.

  • Severity: High
  • CVSS 7.5
  • EPSS 0.61%
  • Public exploit
  • P2 · This week

Why P2: this week.

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.

Affected products

  • pip svglib <= 2.3.0; first patched: 2.3.1

Weakness

CVSS vector

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

References

Browse more

PyPI (pip) packagesWeek 47, 2026 recapUncontrolled resource consumption (DoS)

Published 2026-11-20 · sources: NVD, GitHub Advisory Database