What’s Vulnerable › Vulnerabilities
CVE-2026-31899: CairoSVG vulnerable to Exponential DoS via recursive <use> element amplification
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-03-13 · updated 2026-06-17
- Weakness: CWE-674
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.
Affected products
- Kozea CairoSVG: before 2.9.0 — fixed in 2.9.0
How to fix
Upgrade to a fixed version: Kozea CairoSVG 2.9.0. Check the vendor advisory for mitigations.
References
- https://github.com/Kozea/CairoSVG/commit/6dde8685ed3f19837767bce7a13a5491e3d0e0bf
- https://github.com/Kozea/CairoSVG/security/advisories/GHSA-f38f-5xpm-9r7c
Get alerted when CVE-2026-31899 or the next vulnerability affects your stack