CVE-2026-13346
MEDIUM 5.6CVSS 4.0pip would incorrectly handle doubly-encoded package URLs from indexes
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.
- Published
- 29 Jul 2026
- Last modified
- 24 Oct 2026
- Assigned by
- cna@python.org
- NVD status
- Analyzed
- Weakness
- CWE-36
- Also known as
- GHSA-qwm4-qh6w-59xrPYSEC-2026-3721
- Sources
- NVDJSONOSV GHSA-qwm4-qh6w-59xrJSONOSV PYSEC-2026-3721JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cna@python.org (Secondary) | CVSS 4.0 | MEDIUM 5.6 | CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pypa | pipcpe:2.3:a:pypa:pip:*:*:*:*:*:*:*:* |
< 26.2 | 26.2 |
| OSV | PyPI | pip | < 26.2.0 | 26.2.0 |
| OSV | PyPI | pip | < 26.2 | 26.2 |
References
- https://github.com/pypa/pip/pull/14110 · Issue Tracking, Patch, WEB, FIX
- https://mail.python.org/archives/list/security-announce@python.org/thread/L2BNQGGVQCEV7DROOORQ7WFKKFF2OOQX/ · Mailing List, Third Party Advisory, WEB, ADVISORY
- http://www.openwall.com/lists/oss-security/2026/07/29/7 · Mailing List, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-13346 · ADVISORY
- https://github.com/pypa/pip/commit/10dfb6b9005484578b386f64b9f36982e3dc6679 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/pip/PYSEC-2026-3721.yaml · WEB
- https://github.com/pypa/pip · PACKAGE
- https://github.com/advisories/GHSA-qwm4-qh6w-59xr · ADVISORY
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 29 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Jul 2026)