VDB
Sign up
HIGH7.5

PYSEC-2026-2122

Quick fix

PYSEC-2026-2122 — cairosvg: upgrade to the fixed version with the command below.

pip install --upgrade 'cairosvg>=2.9.0'

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/cairosvg
Introduced in: 0Fixed in: 2.9.0
Fixpip install --upgrade 'cairosvg>=2.9.0'

References