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

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 2.9.0 (CNA); fix release not confirmed
- Status: published
- Published: 2026-03-13 · Modified: 2026-03-16
- Aliases: MGASA-2026-0104, SUSE-SU-2026:1421-1, SUSE-SU-2026:22024-1, GHSA-f38f-5xpm-9r7c, PYSEC-2026-2122, UBUNTU-CVE-2026-31899, DEBIAN-CVE-2026-31899, openSUSE-SU-2026:10379-1, openSUSE-SU-2026:11729-1, ALPINE-CVE-2026-31899
- Record: https://cvemate.com/vulnerability/CVE-2026-31899 · JSON: https://cvemate.com/vulnerability/CVE-2026-31899/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.556%, percentile 47.823%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine py3-cairosvg (Alpine Linux): \< 2.9.0-r0
- courtbouillon cairosvg: \< 2.9.0
- debian cairosvg (Debian): All versions (No fix recorded) \| \< 2.9.0-1
- ubuntu cairosvg (Ubuntu): All versions (No fix recorded)
- kozea cairosvg: \< 2.9.0
- mageia python-cairosvg (Mageia): \< 2.5.2-6.1.mga9
- PyPI cairosvg (PyPI): \< 2.9.0
- opensuse ansible-creator&distro=openSUSE Tumbleweed (openSUSE): \< 26.8.0-1.1
- opensuse python-CairoSVG&distro=openSUSE Leap 15.6 (openSUSE): \< 2.7.1-150400.9.6.1
- opensuse python-CairoSVG&distro=openSUSE Tumbleweed (openSUSE): \< 2.9.0-1.1
- suse python-CairoSVG&distro=SUSE Linux Enterprise Module for Python 3 15 SP7 (SUSE Linux Enterprise): \< 2.7.1-150400.9.6.1
- suse python-CairoSVG&distro=SUSE Linux Enterprise Server 16.0 (SUSE Linux Enterprise): \< 2.7.1-160000.3.1
- suse python-CairoSVG&distro=SUSE Linux Enterprise Server for SAP applications 16.0 (SUSE Linux Enterprise): \< 2.7.1-160000.3.1

## References

- <https://github.com/Kozea/CairoSVG/security/advisories/GHSA-f38f-5xpm-9r7c>
- <https://github.com/Kozea/CairoSVG/commit/6dde8685ed3f19837767bce7a13a5491e3d0e0bf>
- <https://advisories.mageia.org/MGASA-2026-0104.html>
- <https://bugs.mageia.org/show_bug.cgi?id=35370>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IBVXQHEZ24JPDMWUPRKDEZTECZLM3HVS/>
- <https://www.suse.com/support/update/announcement/2026/suse-su-20261421-1/>
- <https://bugzilla.suse.com/1259690>
- <https://www.suse.com/security/cve/CVE-2026-31899>
- <https://www.suse.com/support/update/announcement/2026/suse-su-202622024-1/>
- <https://github.com/Kozea/CairoSVG>
- <https://ubuntu.com/security/CVE-2026-31899>
- <https://www.cve.org/CVERecord?id=CVE-2026-31899>
- <https://security-tracker.debian.org/tracker/CVE-2026-31899>
- <https://security.alpinelinux.org/vuln/CVE-2026-31899>

---

Data as of 2026-12-05T06:48:33.557Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
