What’s Vulnerable › Vulnerabilities

CVE-2026-31899: CairoSVG vulnerable to Exponential DoS via recursive <use> element amplification

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

How to fix

Upgrade to a fixed version: Kozea CairoSVG 2.9.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-31899 or the next vulnerability affects your stack