CVE-2026-31899

CairoSVG vulnerable to Exponential DoS via recursive <use> element amplification

State
Published
Severity
7.5 High
Published
Mar 13, 2026
Updated
Mar 16, 2026
Reserved
Mar 9, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HGitHub_M

Weaknesses

Affected Products

ProductVersions
CairoSVGKozea
  • < 2.9.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.