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

Published Updated

Crafted nested SVGs with recursive image references exhaust resources or crash applications using svglib to render untrusted SVGs.

CVSS score

High

8.7/10

CVSS 4.0 · Scored by VulnCheck Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
Available
2.5.0
Attack path
Over the internet
No login, no user action

What is CVE-2026-137952?

CVE-2026-137952 is a high-severity denial of service vulnerability in deeplook svglib, published on 27 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-674

How severe is CVE-2026-137952?

CVE-2026-137952 scores 8.7 out of 10 under CVSS 4.0, which is high severity. It was scored by VulnCheck.

Attack vector
Network
Attack complexity
Low
Attack requirements
None
Privileges required
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High

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

Which versions are affected by CVE-2026-137952?

1 open source package ship an affected version, including svglib.

An affected version is only exploitable if your software calls SvgRenderer.renderNode() or svg2rlg(). Many projects that include it are not exposed.

PackageAffectedFixed in
svglib PyPI
pkg:pypi/svglib
All versions2.5.0

How do I fix CVE-2026-137952?

Upgrade svglib to 2.5.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2026-137952 being exploited?

There is no known exploitation of CVE-2026-137952 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-137952, GHSA-cmj4-5g24-pp37, GHSA-fvj4-9rvp-wvfc.

Is CVE-2026-137952 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free