Uncontrolled Recursion Affecting cairosvg package, versions *


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.54% (44th 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-ECHOLATEST-CAIROSVG-20746404
  • published10 Oct 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 Echo:latest cairosvg.

NVD Description

Note: Versions mentioned in the description apply only to the upstream cairosvg package and not the cairosvg package as distributed by Echo. See How to fix? for Echo:latest 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