CVE-2026-31899
HIGH7.5EPSS 0.04%CairoSVG vulnerable to Exponential DoS via recursive <use> element amplification
Published: 3/13/2026Modified: 4/28/2026
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.
Affected packages (2)
- Debian/cairosvgfrom 0
- PyPI/cairosvgfrom 0, < 2.9.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |