Read the docs
TI-2026-24451 Aliases CVE-2026-31899GHSA-f38f-5xpm-9r7c

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

Priority HIGH 72CWE-674Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-674.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.0052 44th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed CairoSVG (Kozea): 2.9.0CairoSVG (PyPI): 2.9.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
KozeaCairoSVGbefore 2.9.02.9.0Patch availableCNA
—CairoSVG (PyPI)before 2.9.02.9.0Patch availableGHSA-f38f-5xpm-9r7c
  • CairoSVG VendorKozea Affected before 2.9.0 Fixed in 2.9.0 Patch available CNA
  • CairoSVG (PyPI) Vendor— Affected before 2.9.0 Fixed in 2.9.0 Patch available GHSA-f38f-5xpm-9r7c

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:courtbouillon:cairosvg:*:*:*:*:*:*:*:*before 2.9.0VulnerableCourtbouillon
  • cpe:2.3:a:courtbouillon:cairosvg:*:*:*:*:*:*:*:* Versions before 2.9.0 Vulnerable ·Courtbouillon

Remediation

  • Fix · CNA CairoSVG (Kozea) Fixed in 2.9.0
  • Fix · GHSA-f38f-5xpm-9r7c CairoSVG (PyPI) Fixed in 2.9.0 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-31899
  2. 2026-10-03 Alias added: GHSA-f38f-5xpm-9r7c

References

  • TI-2026-69644 Inefficient path parsing in CairoSVG enables denial of service CVSS 4.0HIGH 8.7
  • TI-2025-42134 WeasyPrint Vulnerable to Server-Side Request Forgery (SSRF) Protection Bypass via HTTP Redirect CVSS 3.1HIGH 7.5
  • TI-2026-36607 WeasyPrint: CSS Injection via Presentational Hints CVSS 3.1MEDIUM 6.5
  • TI-2026-39778 WeasyPrint restrictive URL fetcher bypass allows local file read and SSRF CVSS 3.1MEDIUM 6.2
  • TI-2023-12296 CairoSVG improperly processes SVG files loaded from external resources CVSS 3.1CRITICAL 9.9
  • TI-2026-68895 WeasyPrint passes EPS images to Ghostscript, risking code execution CVSS 3.1HIGH 8.8
See all 8 →

Sources