CVE-2026-13346: pip would incorrectly handle doubly-encoded package URLs from indexes
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.
Published Jul 29, 2026 · Updated Sep 1, 2026
Affected packages
pip
- Ecosystem
- PyPI
- Affected
- < 26.2.0
- Fixed in
- 26.2.0
- Check
pip show pip
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-13346
- https://github.com/pypa/pip/pull/14110
- https://mail.python.org/archives/list/[email protected]/thread/L2BNQGGVQCEV7DROOORQ7WFKKFF2OOQX
- https://github.com/pypa/pip/commit/10dfb6b9005484578b386f64b9f36982e3dc6679
- https://github.com/pypa/advisory-database/tree/main/vulns/pip/PYSEC-2026-3721.yaml
- https://github.com/advisories/GHSA-qwm4-qh6w-59xr
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-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-2026-1703
pip Path Traversal vulnerability
low2.0Feb 2, 2026CVE-2025-8869
pip's fallback tar extraction doesn't check symbolic links point to extraction directory
medium5.9Sep 24, 2025
