CVE-2026-1703: pip Path Traversal vulnerability
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.
Published Feb 2, 2026
Affected packages
pip
- Ecosystem
- PyPI
- Affected
- < 26.0
- Fixed in
- 26.0
- Check
pip show pip
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
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://mail.python.org/archives/list/[email protected]/thread/WIEA34D4TABF2UNQJAOMXKCICSPBE2DJ
- https://github.com/advisories/GHSA-6vgw-5pg2-w6jp
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-13346
pip would incorrectly handle doubly-encoded package URLs from indexes
medium5.6Jul 29, 2026CVE-2026-8643
pip: Path traversal in console_scripts/gui_scripts entry point names allows installing scripts outside of target directory
medium8.0Jun 1, 2026CVE-2026-6357
pip Vulnerable to Inclusion of Functionality from Untrusted Control Sphere
medium5.3Apr 27, 2026CVE-2026-3219
pip has an interpretation conflict due to handling both concatenated tar and ZIP files as ZIP files
medium4.6Apr 20, 2026CVE-2025-8869
pip's fallback tar extraction doesn't check symbolic links point to extraction directory
medium5.9Sep 24, 2025
