CVE-2026-132275

NameCVE-2026-132275
Descriptionsvglib 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1155146

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-svglib (PTS)bookworm1.4.1+dfsg-1vulnerable
forky, sid, trixie1.5.1+dfsg-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python-svglibsource(unstable)(unfixed)1155146

Notes

https://github.com/deeplook/svglib/security/advisories/GHSA-555j-qj3j-c8jv
https://github.com/deeplook/svglib/commit/7380d3c3836940fd75f8e203fff80077b7d5a425 (v2.3.1)

Search for package or bug name: Reporting problems