VDB
KO
MEDIUM 6.5

PYSEC-2026-3721

Quick fix

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

pip install --upgrade 'pip>=26.2'

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI / pip
Introduced in: 0 Fixed in: 26.2
Fix pip install --upgrade 'pip>=26.2'

References