---
schema_version: '1.0'
id: security-20260902-7bbec4
title: 'CVE-2026-13346: pip would incorrectly handle doubly-encoded package URLs from
  indexes'
url: https://osv.dev/vulnerability/GHSA-qwm4-qh6w-59xr
url_hash: 7bbec471cdb6cd8f2544804ff8d5b2cca9ac3a16ebfc3725649ca69824a01996
canonical_url: https://osv.dev/vulnerability/GHSA-qwm4-qh6w-59xr
source: osv:ghsa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-13346
- GHSA-qwm4-qh6w-59xr
- severity: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
- pip
- PyPI
lang: en
published_at: '2026-07-29T21:30:59Z'
fetched_at: '2026-09-02T03:48:09.601764Z'
updated_at: '2026-09-02T03:54:31Z'
status: published
content_hash: 1d18ba45a79a3e5a276d897376c18116381d82e615dbcb9e2f1128649750fb5c
content_changed_at: null
license_note: full
summary: pip would incorrectly handle doubly-encoded package URLs from indexes
summary_source: rss
summary_en: pip would incorrectly handle doubly-encoded package URLs from indexes
summary_omitted_reason: null
redistribution: true
keywords_en:
- cve
- CVE-2026-13346
- CVE-2026-28684
- David Chandler
- doubly-encoded
- from
- GHSA-qwm4-qh6w-59xr
- handle
- incorrectly
- indexes
- library vulnerability
- package
- pip
- PyPI
- severity: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
- software security
- URLs
- would
entities_en:
- name: CVE-2026-28684
  type: event
- name: David Chandler
  type: person
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE-2026-28684
  type: event
- name: David Chandler
  type: person
key_facts: []
related: []
related_auto: []
computed_at: '2026-09-02T03:54:12Z'
---

# CVE-2026-13346: pip would incorrectly handle doubly-encoded package URLs from indexes

## TL;DR
pip would incorrectly handle doubly-encoded package URLs from indexes

## Key Points
- cve / CVE-2026-13346 / GHSA-qwm4-qh6w-59xr / severity: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 / pip / PyPI

## Details
**Severity:** 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
**Advisory:** GHSA-qwm4-qh6w-59xr (CVE-2026-13346)

**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.

**References:**
- https://nvd.nist.gov/vuln/detail/CVE-2026-13346
- https://github.com/pypa/pip/pull/14110
- https://github.com/pypa/pip/commit/10dfb6b9005484578b386f64b9f36982e3dc6679
- https://github.com/pypa/advisory-database/tree/main/vulns/pip/PYSEC-2026-3721.yaml
- https://github.com/pypa/pip
- https://mail.python.org/archives/list/security-announce@python.org/thread/L2BNQGGVQCEV7DROOORQ7WFKKFF2OOQX
- http://www.openwall.com/lists/oss-security/2026/07/29/7

_Data: OSV.dev (upstream: ghsa) — https://osv.dev/vulnerability/GHSA-qwm4-qh6w-59xr_

## Source
元記事: [CVE-2026-13346: pip would incorrectly handle doubly-encoded package URLs from indexes](https://osv.dev/vulnerability/GHSA-qwm4-qh6w-59xr) — published 2026-07-29T21:30:59Z
