Skip to main content
← All vulnerabilities
CVE-2026-31899PYSEC-2026-2122GHSA-F38F-5XPM-9R7C

CairoSVG vulnerable to Exponential DoS via recursive <use> element amplification

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.9.0
1 proof of concept on GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • Kozea CairoSVG

    fixed in 2.9.0

  • cairosvgPyPI

    fixed in 2.9.0

References 3

GitHub · Kozea/CairoSVG

GitHub · SnailSploit/CVE-2026-31899