Skip to main content

svglib EUVDEUVD-2026-131677

| CVE-2026-132275 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-11-20 security-advisories@github.com GHSA-555j-qj3j-c8jv
7.5
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft nested <use> fan-out SVG
  2. Delivery
    Submit to SVG/HTML-to-PDF endpoint
  3. Exploit
    Renderer recursively deep-copies subtrees
  4. Execution
    Exponential node expansion exhausts CPU/memory
  5. Impact
    Worker denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

No special configuration is required: the advisory explicitly states no non-default option is needed. The only prerequisite is that the application passes attacker-controlled SVG to svglib's svg2rlg() renderer - directly (file/stream input to svg2rlg) or indirectly via xhtml2pdf's pisa.CreatePDF() when an HTML document embeds an SVG through a data:image/svg+xml <img> element. The payload must use nested <use> references forming an acyclic fan-out graph (e.g. fan=10 across several <g> levels); direct reference cycles are already rejected by CircularRefError and do not trigger the flaw. Limiting factors: the attacker must be able to supply the SVG/HTML content to a rendering path, and any deployment on svglib 2.3.1+ is protected by the 10,000-expansion cap, which also bounds external-SVG references through the shared counter.

Impact

This is a genuine, well-substantiated availability risk rather than an inflated high-CVSS score. The CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H = 7.5) is consistent with the mechanism documented in the GHSA advisory and the fix commit: an unauthenticated, network-reachable, low-complexity resource-exhaustion flaw with availability-only impact and no confidentiality or integrity effect. The vuln.today priority is 'this_week' (not act_now/emergency). No EPSS score and no CISA KEV status were supplied, and there is no indication of active exploitation, so by the precision rules this is 'no public exploit identified' in the active-exploitation sense - however, the GitHub Security Advisory itself includes a concrete, measured reproduction script, so working trigger code is effectively public even though the input does not flag it as a confirmed weaponized exploit. The decisive signals are the confirmed source-code root cause (SvgRenderer.renderUse deep-copies referenced subtrees with only direct-cycle protection) and the measured impact (a ~1.4 KB SVG expanding to >100,000 nodes, ~34 s CPU and ~469 MiB RSS at 5 levels), which together make this a real, prioritizable DoS for any service that renders untrusted SVG. There is no confidentiality/integrity exposure, so impact is bounded to availability; conflicting signals are minimal, the main caveat being the absence of EPSS/KEV telemetry to gauge real-world targeting.

Exploit ScenarioDerived

An attacker submits a small (~1-2 KB) crafted SVG containing nested <use> groups with fan-out to any service that renders SVG with svglib's svg2rlg() - for example a thumbnail generator, SVG-to-PDF report builder, or an xhtml2pdf HTML-to-PDF endpoint fed an <img src="data:image/svg+xml;base64,..."> element. The renderer recursively deep-copies each referenced subtree, so expansion grows as fan**levels, driving one request to tens of seconds of CPU and hundreds of MiB of memory and exhausting the worker. The GHSA advisory publishes a non-destructive proof-of-concept with measured timings, so a reliable trigger is readily available.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 1.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 20, 2026

Denial of service in svglib through 2.3.0 lets an attacker-supplied SVG exhaust CPU and memory when rendered by svg2rlg(), because nested <use> references in an acyclic fan-out graph are deep-copied and re-rendered exponentially; a roughly 1.4 KB document measured 34 seconds and 469 MiB peak RSS on 2.3.0. Unauthenticated remote attackers (CVSS:3.1/AV:N/AC:L/PR:N/UI:N) only need to get content into a rendering path, either passed directly to svg2rlg() or embedded as a data:image/svg+xml <img> in HTML handed to xhtml2pdf's pisa.CreatePDF(), and no non-default option is required. The issue is fixed in 2.3.1; the advisory includes a reproduction script demonstrating the expansion, no public exploit code or CISA KEV entry is identified in the available data, and the vendor's priority label for this item is this_week.

RemediationAI

Upgrade svglib to 2.3.1 (release https://github.com/deeplook/svglib/releases/tag/v2.3.1, fix commit 7380d3c3836940fd75f8e203fff80077b7d5a425, advisory GHSA-555j-qj3j-c8jv), which caps rendering at 10,000 <use> expansions per document with the counter shared across externally referenced SVGs and logs "Too many <use> expansions" when the cap is hit; the advisory notes the limit is far above what normal documents such as icon sprites and symbol libraries require, and the 6-level payload that previously caused one million expansions then renders in about 1.1 seconds with 64 MiB peak RSS. Because the advisory states that no non-default option is needed to trigger the flaw and describes no configuration-based workaround, updating is the only complete fix; deployments that cannot upgrade immediately should prevent untrusted SVG from reaching svg2rlg(), including sanitizing or blocking data:image/svg+xml <img> sources in any HTML passed to xhtml2pdf's pisa.CreatePDF(), accepting the trade-off that legitimate SVG rendering in those pipelines is lost or must be allow-listed. Review both direct svglib usage and any downstream library, such as xhtml2pdf, that pins svglib transitively and will pick up the fix only once it resolves to 2.3.1 or later.

Affected VersionsENISA

svglib < 2.3.1

Affected Packages

pypi svglib fix: 2.3.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

svglib is a pure-Python SVG reader that converts SVG documents into ReportLab drawings for PDF and report generation. SvgRenderer.renderUse() in src/svglib/svglib.py resolves xlink:href targets through xlink_href_target(), which raises CircularRefError only for direct cycles; a reference graph that is acyclic but has repeated fan-out is therefore expanded in full, with copy.deepcopy() cloning the referenced subtree under each <use> and renderNode() then recursing into any <use> elements inside that copy. Because each nesting level multiplies the work by the fan-out factor, node count grows as fan**levels and a few hundred bytes of additional markup multiplies render time roughly tenfold. This is the SVG <use> counterpart of the XML "billion laughs" entity-expansion attack and the same class as librsvg CVE-2019-20446, mapping to CWE-400 (Uncontrolled Resource Consumption) with CWE-776 (Improper Restriction of Recursive Entity References) cited by the advisory; the trigger requires fan-out nesting rather than a cycle, and the effect is availability only (C:N/I:N/A:H). The upstream fix in commit 7380d3c3836940fd75f8e203fff80077b7d5a425 introduces MAX_USE_EXPANSIONS = 10_000 and a _UseExpansionCounter that is incremented at the start of renderUse(), with the counter shared across external SVGs pulled into the document; beyond the limit expansion is skipped and a single error is logged. Regression tests added upstream render the 5-level fan-10 payload and assert completion within 10 seconds, and verify that the budget is shared with external files.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Unauthenticated, network-delivered untrusted SVG triggers reliable CPU/memory exhaustion with no user interaction and no confidentiality or integrity impact, so AV:N/AC:L/PR:N/UI:N and A:H only.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 7.5 HIGH

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
Nov 20, 2026 - 19:19 EUVD
CVE Published
Nov 20, 2026 - 17:18 cve.org
HIGH 7.5

DescriptionCVE.org

svglib reads SVG files and converts them to other formats. Prior to 2.3.1, the svg2rlg() renderer recursively expands nested SVG <use> references by deep-copying each referenced subtree; SvgRenderer.renderUse() in src/svglib/svglib.py calls xlink_href_target(), which rejects direct cycles but permits acyclic reference graphs with repeated fan-out. A small attacker-controlled SVG can therefore trigger exponentially increasing node expansion, consuming excessive CPU and memory in any application that renders it without a non-default option; HTML-to-PDF workflows using xhtml2pdf can reach the same renderer when an embedded data:image/svg+xml image in an HTML img element is passed to pisa.CreatePDF(). This issue is fixed in 2.3.1.

Technical POC Analysis

CWE-400 (Uncontrolled Resource Consumption), with the advisory also mapping it to CWE-776 (recursive reference restriction).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

A high-severity denial-of-service vulnerability in the svglib library (up to version 2.3.0) can be exploited by attackers to exhaust server CPU and memory via specially crafted SVG files, potentially causing service outages. This affects any application that processes untrusted SVG content, including those using svglib directly or indirectly through xhtml2pdf, and requires immediate attention to prevent disruption to critical business services.

Business Impact: High
Compensating Controls

Apply vendor patch (svglib 2.3.1). If patching is delayed, implement strict resource limits (CPU, memory) for processes handling SVG content, reject SVGs with excessive nesting or size, and avoid rendering untrusted SVGs until upgrade is complete.

Threat Intelligence Overview

EPSS Score
1.1%
Top 35% exploitable
Prevalence
Medium
common Python SVG-to-PDF library, also pulled in transitively by xhtml2pdf
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 1.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

59
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy