What’s Vulnerable › Vulnerabilities
CVE-2026-13346: pip absolute path traversal during download from malicious package indexes
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-07-29 · updated 2026-10-24
- Weakness: CWE-36
Description
pip would incorrectly handle doubly-encoded package URLs from indexes allowing for files to be installed to arbitrary locations on disk even when installing wheels. This vulnerability requires downloading or installing a package from a malicious package index to succeed, malicious packages alone are not able to exploit this vulnerability. Note that this vulnerability only materially impacts users running `pip download` with the `--only-binary` option as installing source distributions from an untrusted index is already an unsafe operation that executes code during install time.
Affected products
- Python Packaging Authority pip: before 26.2 — fixed in 26.2
- Pypi Pip: before 26.2; 0.2, 0.2.1, 0.3, 0.3.1, 0.4, 0.5 (+151) — fixed in 26.2
How to fix
Upgrade to a fixed version: Python Packaging Authority pip 26.2; Pypi Pip 26.2. Check the vendor advisory for mitigations.
References
- https://github.com/pypa/pip/pull/14110
- https://mail.python.org/archives/list/security-announce@python.org/thread/L2BNQGGVQCEV7DROOORQ7WFKKFF2OOQX/
- http://www.openwall.com/lists/oss-security/2026/07/29/7
Get alerted when CVE-2026-13346 or the next vulnerability affects your stack