Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
pip versions before 23.3 are vulnerable to command injection when installing packages from a Mercurial VCS URL (hg+...). An attacker who can supply the Mercurial revision in such a URL can inject arbitrary configuration options into the hg clone call, which can change which repository is installed. Upgrade pip to version 23.3 or later. Users who do not install from Mercurial are not affected.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 5.5 | Medium | 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N | CNA (PSF) |
- CISA KEV Not listed.
- EPSS 0.0050, the 43rd percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:36 UTC First seen by agentprime
- 31 Oct 2026, 14:36 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-mq26-g339-26xf
- OSV: GHSA-mq26-g339-26xf
- nvd.nist.gov/vuln/detail/CVE-2023-5752
- github.com/pypa/pip/pull/12306
- github.com/pypa/pip/commit/389cb799d0da9a840749fcd14878928467ed49b4
- github.com/pypa/advisory-database/tree/main/vulns/pip/PYSEC-2023-228.yaml
- github.com/pypa/pip
- lists.debian.org/debian-lts-announce/2025/10/msg00028.html
- lists.fedoraproject.org/archives/list/[email protected]/message/622OZXWG72ISQPLM5Y57YCVIMWHD4C3U
- lists.fedoraproject.org/archives/list/[email protected]/message/65UKKF5LBHEFDCUSPBHUN4IHYX7SRMHH
- lists.fedoraproject.org/archives/list/[email protected]/message/FXUVMJM25PUAZRQZBF54OFVKTY3MINPW
- lists.fedoraproject.org/archives/list/[email protected]/message/KFC2SPFG5FLCZBYY2K3T5MFW2D22NG6E
- lists.fedoraproject.org/archives/list/[email protected]/message/YBSB3SUPQ3VIFYUMHPO3MEQI4BJAXKCZ
- mail.python.org/archives/list/[email protected]/thread/F4PL35U6X4VVHZ5ILJU3PWUWN7H7LZXL