Skip to content

CVE-2026-137952 svglib before 2.5.0 Denial of Service via Recursive Image Fragment References

HighCVSS 8.7
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
pypi svglib < 2.5.0 2.5.0 Fixed

Affected products

ProductAffected versionsFixed in
pypi svglib < 2.5.0 2.5.0

References