Vulnerability · Published Jul 29, 2026 · Assigned by PSF

CVE-2026-13346pip absolute path traversal during download from malicious package indexes

Medium 5.6

In plain English

A medium-severity security flaw in pip from Python Packaging Authority. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 22% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)5.6Medium
Exploit odds (30 days)0.3%top 78.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12python-pipno fix listedDEBIAN-CVE-2026-13346
Debian:13python-pipno fix listedDEBIAN-CVE-2026-13346
Debian:14python-pip26.2.2+dfsg-1DEBIAN-CVE-2026-13346
PyPIpip26.2.0GHSA-qwm4-qh6w-59xr
PyPIpip26.2PYSEC-2026-3721
Ubuntu:22.04:LTSpipenvno fix listedUBUNTU-CVE-2026-13346
Ubuntu:24.04:LTSpipenvno fix listedUBUNTU-CVE-2026-13346
Ubuntu:26.04:LTSpipenvno fix listedUBUNTU-CVE-2026-13346
Ubuntu:26.10pipenvno fix listedUBUNTU-CVE-2026-13346
Ubuntu:26.10python-pipno fix listedUBUNTU-CVE-2026-13346

Affected products (as reported)

VendorProductVersions
Python Packaging Authority pip 0 – before 26.2

Weakness: CWE-36 · Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

References