{"id":"CVE-2026-31899","published":"2026-03-13T19:38:43Z","modified":"2026-03-16T13:39:14Z","title":"CairoSVG vulnerable to Exponential DoS via recursive <use> element amplification","vendor":"Kozea","product":"CairoSVG","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00598,"percentile":0.42674,"provenance":"source"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"references":[{"url":"https://github.com/Kozea/CairoSVG/security/advisories/GHSA-f38f-5xpm-9r7c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Kozea/CairoSVG/commit/6dde8685ed3f19837767bce7a13a5491e3d0e0bf","tags":["x_refsource_MISC"]}],"priority":{"score":18.8,"factors":[{"name":"EPSS percentile","points":8.53},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.25}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-03-15","earliestUrl":"https://github.com/SnailSploit/CVE-2026-31899","repos":[{"name":"SnailSploit/CVE-2026-31899","url":"https://github.com/SnailSploit/CVE-2026-31899","stars":1,"created":"2026-03-15"}]},"first":{"date":"2026-03-15","source":"PoC-in-GitHub","url":"https://github.com/SnailSploit/CVE-2026-31899"},"provenance":"source"},"vendorSlug":"kozea","affectedVersions":[{"vendor":"Kozea","product":"CairoSVG","versions":["< 2.9.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-16T13:37:56.879562Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"CairoSVG","vulnerableRanges":["<2.9.0"],"patched":["2.9.0"],"from":["GHSA-f38f-5xpm-9r7c","PYSEC-2026-2122"],"provenance":"source"}],"summary":{"text":"The flaw is an uncontrolled recursion issue in the CairoSVG SVG converter (Kozea), specifically in its defs handling in cairosvg/defs.py, where recursive <use> element amplification causes exponential growth in processing.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:37:08Z"},"euvd":{"id":"EUVD-2026-12091","exploited":false,"provenance":"source"}}