Denial of Service Vulnerability in svglib by DeepLook
CVE-2026-137952
8.7HIGH
What is CVE-2026-137952?
The svglib library prior to version 2.5.0 experiences a denial of service flaw due to its handling of SVG image href fragment references. Specifically, the SvgRenderer.renderNode() function permits recursive rendering of internal image references without sufficient limits on recursion depth or robust cycle detection. An attacker can exploit this by providing specially crafted SVG files with nested groups that reference each other or self-reference images. This can result in excessive resource consumption or cause RecursionError crashes, leading to significant service disruption.
Affected Version(s)
svglib 0 < 2.5.0
