{"answers":{"affected":"3 open source packages ship an affected version, including poetry. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-34591 exists.","fix":"Upgrade poetry to 2.3.3 or later.","what":"CVE-2026-34591 is a high-severity path traversal vulnerability in python-poetry poetry, published on 2 Apr 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-34591 and fix it if it is affected.\n\nWhat it is: CVE-2026-34591 is a high-severity path traversal vulnerability in python-poetry poetry, published on 2 Apr 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-34591 exists.\n\nAffected packages and fixed versions:\n- poetry (PyPI): affected from 1.4.0; fixed in 2.3.3\n- poetry (PyPI): affected from 1.4.0; fixed in 2.3.3\n- poetry (PyPI): affected from 1.4.0; fixed in 2.3.3\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-34591/ (Markdown: https://insights.sbomify.com/CVE-2026-34591/index.md)","id":"CVE-2026-34591","markdown":"https://insights.sbomify.com/CVE-2026-34591/index.md","name":"CVE-2026-34591","record":{"aliases":["AZL-81899","DEBIAN-CVE-2026-34591","GHSA-2599-h6xx-hpxp","MINI-5vc4-rxj2-hq3j","PYSEC-2026-2260","ROOT-APP-PYPI-CVE-2026-34591","UBUNTU-CVE-2026-34591"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Python dependency manager","requires_auth":"none","summary":"Attackers can write arbitrary files via crafted wheel packages, potentially compromising the system where Poetry is installed.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"poetry","vendor":"python-poetry"}],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Poetry is a dependency manager for Python. From version 1.4.0 to before version 2.3.3, a crafted wheel can contain ../ paths that Poetry writes to disk without containment checks, allowing arbitrary file write with the privileges of the Poetry process. It is reachable from untrusted package artifacts during normal install flows. (Normally, installing a malicious wheel is not sufficient for execution of malicious code. Malicious code will only be executed after installation if the malicious package is imported or invoked by the user.). This issue has been patched in version 2.3.3.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Poetry Has Wheel Path Traversal Which Can Lead to Arbitrary File Write","id":"CVE-2026-34591","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":4,"next":{"headline":"Coolify: Cross-Team IDOR via Unscoped Server and Project Lookups Exposes SSH Keys and Infrastructure","id":"CVE-2026-34592"},"packages":[{"ecosystem":"PyPI","fixed":["2.3.3"],"introduced":["1.4.0"],"last_affected":[],"package":"poetry","purl":null,"source":"GHSA-2599-h6xx-hpxp"},{"ecosystem":"PyPI","fixed":["2.3.3"],"introduced":["1.4.0"],"last_affected":[],"package":"poetry","purl":"pkg:pypi/poetry","source":"GHSA-2599-h6xx-hpxp"},{"ecosystem":"PyPI","fixed":["2.3.3"],"introduced":["1.4.0"],"last_affected":[],"package":"poetry","purl":"pkg:pypi/poetry","source":"PYSEC-2026-2260"}],"prev":{"headline":"Postiz: SSRF via Webhook Creation Endpoint Missing URL Safety Validation","id":"CVE-2026-34590"},"products":["poetry"],"published":"2026-04-02","related":[{"cvss_score":9.8,"headline":"Poetry before v1.1.9 contains Untrusted Search Path","id":"CVE-2022-26184","kev_date_added":null,"published":"2022-03-21"},{"cvss_score":7.3,"headline":"Poetry Argument Injection vulnerability can lead to local Code Execution","id":"CVE-2022-36069","kev_date_added":null,"published":"2022-09-07"},{"cvss_score":7.3,"headline":"Poetry's Untrusted Search Path can lead to Local Code Execution on Windows","id":"CVE-2022-36070","kev_date_added":null,"published":"2022-09-07"}],"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":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-03","vendors":["python-poetry"]},"summary":"Attackers can write arbitrary files via crafted wheel packages, potentially compromising the system where Poetry is installed.","url":"https://insights.sbomify.com/CVE-2026-34591/"}