Uncontrolled Recursion Affecting cairosvg package, versions *


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.49% (39th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-CAIROSVG-15662542
  • published16 Mar 2026
  • disclosed13 Mar 2026

Introduced: 13 Mar 2026

CVE-2026-31899  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

There is no fixed version for Debian:unstable cairosvg.

NVD Description

Note: Versions mentioned in the description apply only to the upstream cairosvg package and not the cairosvg package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1