CVE-2026-137952

7.5High

Published Nov 27, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

7.5CVSS

High

0CVSS v3.110

Attack vector
Network
Complexity
Low
Privileges
None
User action
None
Impact
High impact on availability
Weakness
CWE-674

What an attacker gets

Remote attackers can crash your application by sending crafted SVG files. This triggers infinite recursion during image rendering, causing a denial of service.

Root cause

The SvgRenderer.renderNode function lacks recursion limits or cycle detection when processing internal image href references.

Affected versions

svglib before 2.5.0

CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Fix & remediation

Upgrade to svglib 2.5.0 or later. If you cannot update, implement strict validation to reject SVG files containing nested or self-referencing image tags before passing them to svg2rlg().

remediation — bash
$ pip install --upgrade svglib

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD description

svglib before 2.5.0 contains a denial of service vulnerability in SvgRenderer.renderNode() that recursively renders internal <image> href fragment references without expansion limits or cycle detection. Attackers can supply crafted SVGs to svg2rlg() with nested groups referencing each other twice or self-referencing images to cause exponential resource consumption or RecursionError crashes.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-137952

More fully triaged vulnerabilities you may want to check next.