{"id":"CVE-2026-132275","summary":"svglib: Exponential resource consumption via nested \u003cuse\u003e references in svg2rlg","details":"svglib reads SVG files and converts them to other formats. Prior to 2.3.1, the svg2rlg() renderer recursively expands nested SVG \u003cuse\u003e 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.","aliases":["GHSA-555j-qj3j-c8jv"],"modified":"2026-11-20T18:00:08.875197484Z","published":"2026-11-20T17:04:40.775Z","database_specific":{"cwe_ids":["CWE-400","CWE-776"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/132xxx/CVE-2026-132275.json","cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/132xxx/CVE-2026-132275.json"},{"type":"FIX","url":"https://github.com/deeplook/svglib/commit/7380d3c3836940fd75f8e203fff80077b7d5a425"},{"type":"WEB","url":"https://github.com/deeplook/svglib/releases/tag/v2.3.1"},{"type":"ADVISORY","url":"https://github.com/deeplook/svglib/security/advisories/GHSA-555j-qj3j-c8jv"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-132275"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/deeplook/svglib","events":[{"introduced":"0"},{"fixed":"90769595fcba2efc39b54fbdb6d1dd856728fc8c"},{"fixed":"7380d3c3836940fd75f8e203fff80077b7d5a425"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"2.3.1"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"fixed":"7380d3c3836940fd75f8e203fff80077b7d5a425"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"90769595fcba2efc39b54fbdb6d1dd856728fc8c"}],"source":"REFERENCES_TAG","original_tag":"v2.3.1"}]}}],"versions":["v2.3.0","v2.2.0","v2.1.0","v2.0.2","v2.0.1","v2.0.0","v2.0b1","v1.6.0","v1.5.1","v1.5.0","v1.4.1","v1.4.0","v1.3.0","v.1.2.1","v1.2.0","v1.1.0","v1.0.1","v1.0.0","v0.9.3","v0.9.2","v0.9.1","v0.9.0","v0.9.0b0","v0.8.1","v.0.8.1","v0.8.0","0.6.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-132275.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}