home / blog
2026-11-21 · high
CVE-2026-132275: DoS Vulnerability in SVG Handling in svglib
CVE-2026-132275: svglib DoS vulnerability, working exploit available, patched in version 2.3.1

CVE-2026-132275 reveals a critical vulnerability in the svglib library, used for converting SVG files to other formats. The vulnerability resides in the svg2rlg() function which, when handling nested <use> references, does not limit recursive expansion, causing exponential increase in CPU and memory consumption. A small SVG file can trigger excessive resource consumption, leading to complete application freeze.
The vulnerability is classified as high severity (CVSS 7.5) and is officially recognized with a patch available in svglib version 2.3.1. Signals indicate that working exploits are already available on GitHub, demonstrating the high criticality of the flaw. The impact directly affects all systems that process SVG files, including HTML-to-PDF workflows using xhtml2pdf.
For defense, it is crucial to immediately apply the update to svglib version 2.3.1. For versions that cannot be updated, it is possible to implement a mitigation by limiting the maximum size of SVG files processed or disabling the rendering of inline images with data:image/svg+xml. It is also recommended to carefully monitor systems for exploitation attempts.
At a glance
- What
- Denial of Service (DoS) vulnerability in svglib library caused by unlimited recursive expansion of SVG <use> elements
- Severity
- High (CVSS 7.5)
- Affected versions
- Versions prior to 2.3.1
- Fix
- Update to version 2.3.1 which introduces MAX_USE_EXPANSIONS limit
- Status
- Officially published on 11/20/2026
- Action
- Immediately apply patch to version 2.3.1 or later
Sources: NVD, CVE-2026-132275