CVE-2026-137952
svglib before 2.5.0 Denial of Service via Recursive Image Fragment References
High · 8.7Fix available
- CVSS
- 8.7
- EPSS
- —
- Published
- 2026-11-27
- Age
- 1d old
- Modified
- 2026-11-28
- Product
- deeplook svglib
- Aliases
- GHSA-cmj4-5g24-pp37
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
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.
Fixed in
2.5.0
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | svglib | >=0, <2.5.0 | 2.5.0 |
Sources
- NVD · first seen 23h ago · NVD terms of use
- OSV · first seen 2h ago · CC-BY 4.0
- CVE List · first seen 24h ago · CVE Terms of Use
References
- https://github.com/deeplook/svglib/security/advisories/GHSA-cmj4-5g24-pp37 vendor-advisory
- https://github.com/deeplook/svglib/commit/be3c218c35845acb5ad88cca6352a85b0eaad00e patch
- https://github.com/deeplook/svglib/releases/tag/v2.5.0 release-notes
- https://github.com/deeplook/svglib/blob/f99f799e6ed5841e3a405d0536a0a79ed991331c/src/svglib/svglib.py#L1427-L1440 technical-description
- https://www.vulncheck.com/advisories/svglib-before-2.5.0-denial-of-service-via-recursive-image-fragment-references third-party-advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137952.json advisory
- https://github.com/deeplook/svglib package
- https://nvd.nist.gov/vuln/detail/CVE-2026-137952 advisory