High severity · published Mar 13, 2026
CVE-2026-31899
CairoSVG vulnerable to Exponential DoS via recursive <use> element amplification
7.5
CVSS
0.5%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 43% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CA
CairoSVG · Kozea
< 2.9.0 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-31899
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-31899
Patch
https://github.com/Kozea/CairoSVG/commit/6dde8685ed3f19837767bce7a13a5491e3d0e0bf
Exploit
https://github.com/Kozea/CairoSVG/security/advisories/GHSA-f38f-5xpm-9r7c
More from CairoSVG
8.7
CVE-2026-107378
CairoSVG: Quadratic-time DoS parsing a crafted SVG <path>
