Resource Exhaustion Affecting cairosvg package, versions *


Severity

Recommended
0.0
medium
0
10

Based on Ubuntu security rating.

Threat Intelligence

EPSS
1.36% (72nd 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-UBUNTU2004-CAIROSVG-1125166
  • published6 Nov 2026
  • disclosed6 Jan 2021

Introduced: 6 Jan 2021

CVE-2021-21236  (opens in a new tab)
CWE-400  (opens in a new tab)

How to fix?

There is no fixed version for Ubuntu:20.04 cairosvg.

NVD Description

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

CairoSVG is a Python (pypi) package. CairoSVG is an SVG converter based on Cairo. In CairoSVG before version 2.5.1, there is a regular expression denial of service (REDoS) vulnerability. When processing SVG files, the python package CairoSVG uses two regular expressions which are vulnerable to Regular Expression Denial of Service (REDoS). If an attacker provides a malicious SVG, it can make cairosvg get stuck processing the file for a very long time. This is fixed in version 2.5.1. See Referenced GitHub advisory for more information.

CVSS Base Scores

version 3.1