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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi svglib | < 2.5.0 | 2.5.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi svglib | < 2.5.0 | 2.5.0 |
References
- GitHub Security Advisory (GHSA-cmj4-5g24-pp37) vendor-advisory
- github.com patch
- svglib v2.5.0 Release Notes release-notes
- github.com technical-description
- VulnCheck Advisory: svglib before 2.5.0 Denial of Service via Recursive Image Fragment References third-party-advisory