ADVISORIES

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

EcosystemPackageAffected versions
PyPIpip
All versions before 26.0 (fixed in 26.0)

References