# CVE-2026-132275: svglib: Exponential resource consumption via nested <use> references in svg2rlg

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.06%, higher than 65% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-20T17:04:40.775Z
- Modified: 2026-11-21T00:00:04.016Z
- Also known as: GHSA-555j-qj3j-c8jv
- Weaknesses: CWE-400, CWE-776
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- deeplook svglib: < 2.3.1
- svglib (PyPI): before 2.3.1

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/deeplook/svglib/security/advisories/GHSA-555j-qj3j-c8jv> (exploit, web)
- <https://github.com/deeplook/svglib/commit/7380d3c3836940fd75f8e203fff80077b7d5a425> (web)
- <https://github.com/deeplook/svglib/releases/tag/v2.3.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-132275> (advisory)
- <https://github.com/deeplook/svglib> (package)

## Sources

- CVE List: [CVE-2026-132275](https://www.cve.org/CVERecord?id=CVE-2026-132275), CVE Terms of Use, modified 2026-11-20
- GitHub Advisory Database: [GHSA-555j-qj3j-c8jv](https://github.com/advisories/GHSA-555j-qj3j-c8jv), CC-BY-4.0, modified 2026-11-21
- NVD: [CVE-2026-132275](https://nvd.nist.gov/vuln/detail/CVE-2026-132275), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-132275 · Whole record: https://cve.day/CVE-2026-132275.json · Rebuilt by cve.day 2026-11-25T22:59:52.432Z
