VDB
Sign up
—

PYSEC-2026-2875

pip has an interpretation conflict due to handling both concatenated tar and ZIP files as ZIP files

Quick fix

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

pip install --upgrade 'pip>=26.1'

Details

pip handles concatenated tar and ZIP files as ZIP files regardless of filename or whether a file is both a tar and ZIP file. This behavior could result in confusing installation behavior, such as installing "incorrect" files according to the filename of the archive. New behavior only proceeds with installation if the file identifies uniquely as a ZIP or tar archive, not as both.

Are you affected?

Enter the version of the package you're using.

Affected packages

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

References