{"id":"CVE-2026-132275","aliases":["GHSA-555j-qj3j-c8jv"],"title":"svglib: Exponential resource consumption via nested <use> references in svg2rlg","originalDescription":"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.","severity":{"cvss":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.00609,"percentile":0.43358},"exploitDb":null},"affected":[{"ecosystem":"PyPI","name":"svglib","range":"<= 2.3.0","fixed":"2.3.1"},{"ecosystem":"PyPI","name":"svglib","range":">=0, <2.3.1","fixed":"2.3.1"}],"references":[{"url":"https://github.com/deeplook/svglib/security/advisories/GHSA-555j-qj3j-c8jv","type":"x_refsource_CONFIRM"},{"url":"https://github.com/deeplook/svglib/commit/7380d3c3836940fd75f8e203fff80077b7d5a425","type":"x_refsource_MISC"},{"url":"https://github.com/deeplook/svglib/releases/tag/v2.3.1","type":"x_refsource_MISC"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/132xxx/CVE-2026-132275.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-132275","type":"advisory"},{"url":"https://github.com/advisories/GHSA-555j-qj3j-c8jv","type":"other"},{"url":"https://github.com/deeplook/svglib","type":"package"}],"sources":[{"name":"nvd","at":"2026-11-20T19:42:57.284Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-132275","license":"NVD terms of use","firstSeenAt":"2026-11-20T17:31:12.208Z"},{"name":"osv","at":"2026-11-21T21:34:35.152Z","url":"https://osv.dev/vulnerability/CVE-2026-132275","license":"CC-BY 4.0","firstSeenAt":"2026-11-20T18:04:42.753Z"},{"name":"ghsa","at":"2026-12-01T11:52:21.375Z","url":"https://github.com/advisories/GHSA-555j-qj3j-c8jv","license":"CC-BY 4.0","firstSeenAt":"2026-11-21T00:07:16.137Z"},{"name":"cvelistV5","at":"2026-11-23T21:31:24.099Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-132275","license":"CVE Terms of Use","firstSeenAt":"2026-11-20T17:28:31.981Z"}],"firstSeenAt":"2026-11-20T17:28:31.981Z","publishedAt":"2026-11-20T17:04:40.775Z","modifiedAt":"2026-11-21T21:00:43.832Z"}