PyPA Advisory Database
PYSEC-2026-1796
pip Path Traversal vulnerability
Details
When pip is installing and extracting a maliciously crafted wheel archive, files may be extracted outside the installation directory. The path traversal is limited to prefixes of the installation directory, thus isn't able to inject or overwrite executable files in typical situations.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | pip | All versions before 26.0 (fixed in 26.0) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-1703
- https://github.com/pypa/pip/pull/13777
- https://github.com/pypa/pip/commit/8e227a9be4faa9594e05d02ca05a413a2a4e7735
- https://github.com/pypa/pip
- https://mail.python.org/archives/list/[email protected]/thread/WIEA34D4TABF2UNQJAOMXKCICSPBE2DJ
- https://pypi.org/project/pip
- https://github.com/advisories/GHSA-6vgw-5pg2-w6jp