ADVISORIES

PyPA Advisory Database

PYSEC-2026-2122

Details

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 packages

EcosystemPackageAffected versions
PyPIcairosvg
All versions before 2.9.0 (fixed in 2.9.0)

References