CVE-2026-31899 PUBLISHED

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

Assigner: GitHub_M
Reserved: 09.03.2026 Published: 13.03.2026 Updated: 13.03.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS Score: 7.5

Product Status

Vendor Kozea
Product CairoSVG
Versions
  • Version < 2.9.0 is affected

References

Problem Types

  • CWE-674: Uncontrolled Recursion CWE