Uncontrolled Recursion Affecting py3-cairosvg package, versions <2.9.0-r0


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-ALPINE323-PY3CAIROSVG-16282520
  • published25 Apr 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?

Upgrade Alpine:3.23 py3-cairosvg to version 2.9.0-r0 or higher.

NVD Description

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