Vulnerability 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 Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Courtbouillon | Cairosvg | < 2.9.0 |
Related Weaknesses (CWE)
References
- https://github.com/Kozea/CairoSVG/commit/6dde8685ed3f19837767bce7a13a5491e3d0e0bPatch
- https://github.com/Kozea/CairoSVG/security/advisories/GHSA-f38f-5xpm-9r7cExploitMitigationVendor Advisory
FAQ
What is CVE-2026-31899?
CVE-2026-31899 is a vulnerability with a CVSS score of 7.5 (HIGH). 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...
How severe is CVE-2026-31899?
CVE-2026-31899 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-31899?
Check the references section above for vendor advisories and patch information. Affected products include: Courtbouillon Cairosvg.