CVE-2026-31899
March 13, 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.
Affected Packages
cairosvg (CONDA):
Affected version(s) >=2.0.0rc6 <2.9.0Fix Suggestion:
Update to version 2.9.0https://github.com/Kozea/CairoSVG.git (GITHUB):
Affected version(s) >=0.1 <2.9.0Fix Suggestion:
Update to version 2.9.0cairosvg (PYTHON):
Affected version(s) >=0.1 <2.9.0Fix Suggestion:
Update to version 2.9.0Related Resources (3)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
EPSS
Base Score:
0.06