{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-5271 exists.","fix":"No fix has been published for CVE-2026-5271 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-5271 is a medium-severity code injection vulnerability in Python Software Foundation pymanager, published on 1 Apr 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-5271 and fix it if it is affected.\n\nWhat it is: CVE-2026-5271 is a medium-severity code injection vulnerability in Python Software Foundation pymanager, published on 1 Apr 2026. It can only be exploited from the same machine or local network, 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-5271 exists.\n\nAffected product: Python Software Foundation pymanager. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-5271/ (Markdown: https://insights.sbomify.com/CVE-2026-5271/index.md)","id":"CVE-2026-5271","markdown":"https://insights.sbomify.com/CVE-2026-5271/index.md","name":"CVE-2026-5271","record":{"aliases":["GHSA-jr5x-hgm4-rrm6"],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python package manager","requires_auth":"none","summary":"Attackers can execute arbitrary code by placing malicious modules in the current working directory when users run pymanager commands.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"PSF","cpe":[{"product":"pymanager","vendor":"python"}],"cvss":{"score":5.6,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-427","name":"Uncontrolled Search Path Element"}],"description":"pymanager included the current working directory in sys.path meaning modules could be shadowed by modules in the current working directory. As a result, if a user executes a pymanager-generated command (e.g., pip, pytest)\n from an attacker-controlled directory, a malicious module in that \ndirectory can be imported and executed instead of the intended package.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Possible to hijack modules in current working directory","id":"CVE-2026-5271","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":0,"n_references":1,"next":{"headline":"Memory corruption in Chrome","id":"CVE-2026-5272"},"packages":[],"prev":{"headline":"Authentication Bypass in Navigator and Blue Planet Products","id":"CVE-2026-5270"},"products":["pymanager"],"published":"2026-04-01","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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-01","vendors":["Python Software Foundation"]},"summary":"Attackers can execute arbitrary code by placing malicious modules in the current working directory when users run pymanager commands.","url":"https://insights.sbomify.com/CVE-2026-5271/"}