VDB
Sign up
—

PYSEC-2026-1796

pip Path Traversal vulnerability

Quick fix

PYSEC-2026-1796 — pip: upgrade to the fixed version with the command below.

pip install --upgrade 'pip>=26.0'

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/pip
Introduced in: 0Fixed in: 26.0
Fixpip install --upgrade 'pip>=26.0'

References