Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. CairoSVG
  4. ›
  5. CVE-2026-31899

CVE-2026-31899: CairoSVG vulnerable to Exponential DoS via recursive <use> element amplification

March 13, 2026 (updated April 15, 2026)

Kozea/CairoSVG (~300K downloads/week) has exponential denial of service via recursive <use> element amplification in cairosvg/defs.py (line ~335). This causes CPU exhaustion from a small input.

References

  • github.com/Kozea/CairoSVG/commit/6dde8685ed3f19837767bce7a13a5491e3d0e0bf
  • github.com/Kozea/CairoSVG/security/advisories/GHSA-f38f-5xpm-9r7c
  • github.com/advisories/GHSA-f38f-5xpm-9r7c
  • nvd.nist.gov/vuln/detail/CVE-2026-31899

Code Behaviors & Features

Detect and mitigate CVE-2026-31899 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.9.0

Fixed versions

  • 2.9.0

Solution

Upgrade to version 2.9.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

pypi/CairoSVG/CVE-2026-31899.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:45 +0000.