Advisory

PYSEC-2026-2122

Also known as: CVE-2026-31899, GHSA-f38f-5xpm-9r7c

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2026-03-13 19:54 UTC
Modified
2026-07-13 07:15 UTC

Affected packages and fixes

cairosvg

PyPI · All systems

Affected

  • introduced 0, fixed 2.9.0 (ecosystem)

Fixed versions

2.9.0

Fix

  • Fixed version 2.9.0
    pip install --upgrade cairosvg==2.9.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences