{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "fe5cae58e929e6d4337442c96ab415d1a7230905"
            }
          ],
          "repo": "https://github.com/kozea/cairosvg",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-f38f-5xpm-9r7c"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-674"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31899.json"
  },
  "details": "CairoSVG is an SVG converter based on Cairo, a 2D graphics library. Prior to Kozea/CairoSVG has exponential denial of service via recursive \u003cuse\u003e element amplification in cairosvg/defs.py. This causes CPU exhaustion from a small input.",
  "id": "CVE-2026-31899",
  "modified": "2026-04-01T23:10:38.362491455Z",
  "published": "2026-03-13T19:38:43.990Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31899.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/Kozea/CairoSVG/security/advisories/GHSA-f38f-5xpm-9r7c"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-31899"
    },
    {
      "type": "FIX",
      "url": "https://github.com/Kozea/CairoSVG/commit/6dde8685ed3f19837767bce7a13a5491e3d0e0bf"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "CairoSVG vulnerable to Exponential DoS via recursive \u003cuse\u003e element amplification"
}