{"answers":{"affected":"3 open source packages ship an affected version, including cairosvg.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-107378 exists.","fix":"Upgrade cairosvg to 2.9.1 or later.","what":"CVE-2026-107378 is a high-severity denial of service vulnerability in Kozea CairoSVG, published on 8 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-107378 and fix it if it is affected.\n\nWhat it is: CVE-2026-107378 is a high-severity denial of service vulnerability in Kozea CairoSVG, published on 8 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-107378 exists.\n\nAffected packages and fixed versions:\n- cairosvg (PyPI): affected all versions; fixed in 2.9.1\n- cairosvg (PyPI): affected all versions; fixed in 2.9.1\n- cairosvg (PyPI): affected all versions; fixed in 2.9.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-107378/ (Markdown: https://insights.sbomify.com/CVE-2026-107378/index.md)","id":"CVE-2026-107378","markdown":"https://insights.sbomify.com/CVE-2026-107378/index.md","name":"CVE-2026-107378","record":{"aliases":["DEBIAN-CVE-2026-107378","GHSA-c3jg-qh8m-j3h2","PYSEC-2026-4204","ROOT-APP-PYPI-CVE-2026-107378","UBUNTU-CVE-2026-107378","openSUSE-SU-2026:12111-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Python SVG converter","requires_auth":"none","summary":"An attacker can cause denial of service by providing a crafted SVG file that triggers quadratic CPU consumption during rendering.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"description":"CairoSVG is an SVG converter based on Cairo, a 2D graphics library. Prior to 2.9.1, rendering an attacker-controlled SVG with a path containing many segments can cause quadratic CPU consumption in cairosvg/path.py. The path tokenizer repeatedly slices and rescans the remaining path data, while draw_markers drains node.vertices with node.vertices.pop(0), causing repeated linear-time work. The svg2png, svg2pdf, and svg2ps APIs reach these operations during ordinary rendering, allowing a sub-megabyte SVG to consume substantial CPU and deny service to a rendering application. This issue is fixed in version 2.9.1.","ecosystems":["PyPI","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"CairoSVG: Quadratic-time DoS parsing a crafted SVG \u003cpath\u003e","id":"CVE-2026-107378","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":4,"n_references":4,"next":{"headline":"enshrined/svg-sanitize: Denial of Service via DTD Attribute Declaration Crash","id":"CVE-2026-107379"},"packages":[{"ecosystem":"PyPI","fixed":["2.9.1"],"introduced":["0"],"last_affected":[],"package":"cairosvg","purl":null,"source":"GHSA-c3jg-qh8m-j3h2"},{"ecosystem":"PyPI","fixed":["2.9.1"],"introduced":["0"],"last_affected":[],"package":"cairosvg","purl":"pkg:pypi/cairosvg","source":"GHSA-c3jg-qh8m-j3h2"},{"ecosystem":"PyPI","fixed":["2.9.1"],"introduced":["0"],"last_affected":[],"package":"cairosvg","purl":"pkg:pypi/cairosvg","source":"PYSEC-2026-4204"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.9.1-1.1"],"introduced":["0"],"last_affected":[],"package":"python-CairoSVG","purl":"pkg:rpm/opensuse/python-CairoSVG\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:12111-1"}],"prev":{"headline":"datamodel-code-generator: Protobuf weak-import path traversal allows files to be written outside the temporary directory","id":"CVE-2026-107377"},"products":["CairoSVG"],"published":"2026-10-08","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-08","vendors":["Kozea"]},"summary":"An attacker can cause denial of service by providing a crafted SVG file that triggers quadratic CPU consumption during rendering.","url":"https://insights.sbomify.com/CVE-2026-107378/"}