svglib reads SVG files and converts them to other formats. Prior to 2.3.1, the svg2rlg() renderer recursively expands nested SVG 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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-400",
"CWE-776"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/132xxx/CVE-2026-132275.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "2.3.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "7380d3c3836940fd75f8e203fff80077b7d5a425"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v2.3.1",
"range": [
{
"fixed": "90769595fcba2efc39b54fbdb6d1dd856728fc8c"
}
],
"source": "REFERENCES_TAG"
}
]
}