CVE-2026-31899

CairoSVG vulnerable to Exponential DoS via recursive <use> element amplification

Published Mar 13, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
CairoSVG is an SVG converter based on Cairo, a 2D graphics library. Prior to Kozea/CairoSVG has exponential denial of service via recursive <use> element amplification in cairosvg/defs.py. This causes CPU exhaustion from a small input.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-f38f-5xpm-9r7c CairoSVG vulnerable to Exponential DoS via recursive <use> element amplification
History
Type Values Removed Values Added
First Time appeared Courtbouillon
Courtbouillon cairosvg
CPEs cpe:2.3:a:courtbouillon:cairosvg:*:*:*:*:*:*:*:*
Vendors & Products Courtbouillon
Courtbouillon cairosvg
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Kozea
Kozea cairosvg
Vendors & Products Kozea
Kozea cairosvg
Type Values Removed Values Added
Description CairoSVG is an SVG converter based on Cairo, a 2D graphics library. Prior to Kozea/CairoSVG has exponential denial of service via recursive <use> element amplification in cairosvg/defs.py. This causes CPU exhaustion from a small input.
Title CairoSVG vulnerable to Exponential DoS via recursive <use> element amplification
Weaknesses CWE-674
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 16, 2026, 1:39 PM
Reserved
Mar 9, 2026, 9:59 PM
Status
Analyzed
Published
Mar 13, 2026, 7:54 PM
Modified
Jun 17, 2026, 10:34 AM
Severity
Important
Public date
Mar 13, 2026, 7:38 PM