CVE-2026-31899: CairoSVG vulnerable to Exponential DoS via recursive <use> element amplification
Vulnerability summary
CVE-2026-31899 is a high (CVSS 7.5) Uncontrolled Recursion vulnerability in courtbouillon cairosvg. EPSS estimates a 0.56% chance of exploitation in the next 30 days, higher than 47.8% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Timeline
- 13-03-2026PublishedVulnerability first disclosed.
- 16-03-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · PypiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.56%
Chance of exploitation in the next 30 days
Percentile
48%
Versus all other CVEs
30-day change
Increase +0.04 pp
From 0.52% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundCairosvg
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Opensuse3 products
- ansible-creator&distro=openSUSE Tumbleweed< 26.8.0-1.1
- python-CairoSVG&distro=openSUSE Leap 15.6< 2.7.1-150400.9.6.1
- python-CairoSVG&distro=openSUSE Tumbleweed< 2.9.0-1.1
Suse3 products
- python-CairoSVG&distro=SUSE Linux Enterprise Module for Python 3 15 SP7< 2.7.1-150400.9.6.1
- python-CairoSVG&distro=SUSE Linux Enterprise Server 16.0< 2.7.1-160000.3.1
- python-CairoSVG&distro=SUSE Linux Enterprise Server for SAP applications 16.0< 2.7.1-160000.3.1
Alpine1 product
- py3-cairosvg< 2.9.0-r0
Courtbouillon1 product
- cairosvg< 2.9.0
Debian1 product
- cairosvgAll versions (No fix recorded) | < 2.9.0-1
Kozea1 product
- cairosvg< 2.9.0
Mageia1 product
- python-cairosvg< 2.5.2-6.1.mga9
PyPI1 product
- cairosvg< 2.9.0
Ubuntu1 product
- cairosvgAll versions (No fix recorded)
9 vendors · 13 products
References
14 links- github.com/Kozea/CairoSVG/security/advisories/GHSA-f38f-5xpm-9r7cX Refsource CONFIRMAdvisoryWEBEVIDENCEREPORTExploitMitigationVendor Advisory
- github.com/Kozea/CairoSVG/commit/6dde8685ed3f19837767bce7a13a5491e3d0e0bfX Refsource MISCWEBFIXREPORTPatch
- github.com/Kozea/CairoSVGPACKAGE