Advisory

GHSA-qwm4-qh6w-59xr

Also known as: CVE-2026-13346, PYSEC-2026-3721

Summary

pip would incorrectly handle doubly-encoded package URLs from indexes

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-07-29 21:30 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

pip

PyPI · All systems

Affected

  • introduced 0, fixed 26.2.0 (ecosystem)

Fixed versions

26.2.0

Fix

  • Fixed version 26.2.0
    pip install --upgrade pip==26.2.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences