Skip to main content
VulnerabilityPublished Updated

CVE-2026-31899: Prior to Kozea/CairoSVG has exponential denial of service via recursive <use> element amplification

Affects cairosvgSource GCVE Database

0
Compare
Authoritative record:CVE-2026-31899· High 7.5

Not known to be exploited · CVSS 7.5 High.

Data as of 17 Nov 2026, 06:51 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 16 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10cairosvgpkg:deb/ubuntu/cairosvg?arch=source&distro=stonkingOther threatsAffected
  • =2.8.2-1
  • =2.9.0-1
  • =2.9.0-2
Fixed in–
Ubuntu 26.04 LTScairosvgpkg:deb/ubuntu/cairosvg?arch=source&distro=resoluteOther threatsAffected
  • =2.7.1-2
  • =2.8.2-1
Fixed in–
Ubuntu 25.10cairosvgpkg:deb/ubuntu/cairosvg?arch=source&distro=questingOther threatsAffected
  • =2.7.1-1
  • =2.7.1-2
Fixed in–
Ubuntu 24.04 LTScairosvgpkg:deb/ubuntu/cairosvg?arch=source&distro=nobleOther threatsAffected
  • =2.7.1-1
Fixed in–
Ubuntu Pro 22.04 LTScairosvgpkg:deb/ubuntu/cairosvg?arch=source&distro=esm-apps/jammyOther threatsAffected
  • =2.5.0-1.1
  • =2.5.2-1
  • =2.5.2-1ubuntu0.1~esm1
Fixed in–
Ubuntu Pro 20.04 LTScairosvgpkg:deb/ubuntu/cairosvg?arch=source&distro=esm-apps/focalOther threatsAffected
  • =2.4.0-2
  • =2.4.2-1
  • =2.4.2-1ubuntu0.1~esm1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Until a fix is available, avoid processing untrusted SVG files with affected versions of CairoSVG.

Description

CairoSVG versions prior to certain releases contain a vulnerability where recursive <use> elements cause exponential amplification, leading to denial of service via CPU exhaustion. This flaw exists in the cairosvg/defs.py component and can be triggered by crafted SVG input. The vulnerability has a high severity rating with a CVSS score of 7.5.

References

Community reviews

Loading reviews…