Security mailing lists by PureSourceCode

CVE-2026-31899

HIGH 7.5CVSS 3.1

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

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.

Published
13 Mar 2026
Last modified
13 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-400CWE-674
Also known as
GHSA-f38f-5xpm-9r7cPYSEC-2026-2122
Sources
NVDJSONOSV GHSA-f38f-5xpm-9r7cJSONOSV PYSEC-2026-2122JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV PyPA CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD courtbouillon cairosvg
cpe:2.3:a:courtbouillon:cairosvg:*:*:*:*:*:*:*:*
< 2.9.0 2.9.0
OSV PyPI cairosvg < 2.9.0 2.9.0

References

History

  • 25 Nov 2026 21:01 UTC · NVD: first stored (published 13 Mar 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Mar 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 Mar 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.