—
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
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-3219[ADVISORY]
- https://github.com/pypa/pip/issues/13867[WEB]
- https://github.com/pypa/pip/pull/13870[WEB]
- https://github.com/pypa/pip[PACKAGE]
- https://mail.python.org/archives/list/security-announce@python.org/thread/QAJ5JIVWWCAJ4EZL2FP5MOOW35JS7LRJ[WEB]
- http://www.openwall.com/lists/oss-security/2026/04/20/8[WEB]
- https://pypi.org/project/pip[PACKAGE]
- https://github.com/advisories/GHSA-58qw-9mgm-455v[ADVISORY]