CVE-2026-5271

published 1 Apr 2026 · updated 1 Apr 2026

Possible to hijack modules in current working directory

5.6MediumCVSS 5.6EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 26.1.

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) from an attacker-controlled directory, a malicious module in that directory can be imported and executed instead of the intended package.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Python Software Foundation>=26.0 <26.126.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-5271 severity on Zeptric[![CVE-2026-5271](https://zeptric.io/badge/cve/CVE-2026-5271.svg)](https://zeptric.io/cve/CVE-2026-5271)