Skip to content
svglib Denial-of-Service Flaw in SVG Fragment Rendering (CVE-2026-137952)

svglib Denial-of-Service Flaw in SVG Fragment Rendering (CVE-2026-137952)

First seen 28 Nov 2026, 02:20 UTC • •

Article Content

Browse articles
ThreatCluster AI
ThreatCluster •November 28, 2026 at 02:21 UTC
  • •CVE-2026-137952 (CVSS 8.7) is a denial-of-service flaw in svglib before 2.5.0.
  • •Crafted SVGs with mutually referencing or self-referencing internal fragments can cause CPU/memory exhaustion or crashes.
  • •The flaw is an unpatched expansion path that bypasses the limits added in svglib 2.3.1 for CVE-2026-132275.
  • •Exposed Python SVG-to-document conversion services accepting untrusted uploads are most at risk.
  • •Upgrade to svglib 2.5.0 or later, or reject untrusted SVG input until patched.

CVE-2026-137952 affects svglib before 2.5.0, where SvgRenderer.renderNode() recursively renders internal href fragment references without expansion limits or cycle detection. Per Redpacketsecurity, crafted SVGs passed to svg2rlg() with mutually referencing nested groups or self-referencing images can cause exponential resource consumption or Python RecursionError crashes.

A GitHub security advisory (GHSA-cmj4-5g24-pp37) states the flaw is a second expansion path that bypasses the limits added to renderUse() in 2.3.1 under CVE-2026-132275, and describes a roughly 1.5 KB SVG triggering over 131,000 recursive calls.

Redpacketsecurity rates operational risk as high for exposed rendering workflows, noting no KEV, SSVC or EPSS data was available. The CVE is listed with a CVSS score of 8.7 (high).

Exposed Python applications handling untrusted SVG uploads are most affected; mitigations are upgrading to the fixed release, rejecting untrusted SVGs, and running renderers in isolated workers with resource limits. No exploitation in the wild is reported in the sources.

Start a free Starter trial for enhanced analysis

Ask AI about this cluster

Or ask in your own assistant: ClaudeChatGPTPerplexityGemini

Timeline

2026-11-27
CVE-2026-137952 published
The CVE was published with a CVSS score of 8.7 (high) for svglib before 2.5.0.
Redpacketsecurity
2026-11-28
Redpacketsecurity publishes alert
Redpacketsecurity rated operational risk high and noted no KEV, SSVC or EPSS data was available.
Redpacketsecurity
2026-11-28
GitHub advisory GHSA-cmj4-5g24-pp37 published
The advisory describes the unguarded internal fragment expansion path and includes proof-of-concept inputs causing exponential expansion and RecursionError.
github.com

More articles in this cluster (5)

Following this threat?

Track CVE-2026-132275 in your own feed — you're alerted when they show up in new reporting, leak sites or exploitation.

Free account · no card needed

Common questions

Am I affected?
You are potentially affected if you run svglib before 2.5.0 and pass untrusted SVG content to svg2rlg() or the renderer.
How urgent is this?
Redpacketsecurity rates operational risk as high for exposed workflows, and the GitHub advisory includes working proof-of-concept inputs, though no in-the-wild exploitation is reported.
What should we do first?
Upgrade to svglib 2.5.0 or later, including transitive dependencies; until then reject untrusted SVGs or run rendering in isolated workers with CPU, memory and time limits.