CVE-2026-6357: Pip Pip Vulnerable To Inclusion Of Vulnerability
MODERATECVE-2026-6357 is a MODERATE pip vulnerable to inclusion of vulnerability (CWE-829: Inclusion of Functionality from Untrusted Control Sphere) affecting Pip libraries in the PyPI ecosystem. The issue involves pip vulnerable to inclusion of functionality from untrusted control sphere. Remediation is available by upgrading affected packages to version 26.1.
CVE-2026-6357 at a Glance
How to Fix CVE-2026-6357
To remediate this vulnerability, upgrade all affected Pip dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install pip>=26.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show pip
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-6357, inspect your installed packages using pip:
pip show pip
Analyze the terminal output to locate any version of Pip in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 26.1), your application is affected.
Note: The pip show pip command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-829: Inclusion of Functionality from Untrusted Control Sphere, where the product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere. In Pip, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-6357 Affected Pip Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pip
|
PyPI |
< 26.1
|
26.1
|
References
Frequently Asked Questions
What is CVE-2026-6357?
Which Pip versions are affected?
What version fixes CVE-2026-6357?
Is pip affected?
What CWE is associated with CVE-2026-6357?
How can I check PyPI dependencies for CVE-2026-6357?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jp4c-xjxw-mgf9",
"modified" : "2026-05-05T22:05:46Z",
"published" : "2026-04-27T15:30:52Z",
"aliases" : [ "CVE-2026-6357" ],
"summary" : "pip Vulnerable to Inclusion of Functionality from Untrusted Control Sphere",
"details" : "pip prior to version 26.1 would run self-update check functionality after installing wheel files which required importing well-known Python modules names. These module imports were intentionally deferred to increase startup time of the pip CLI. The patch changes self-update functionality to run before wheels are installed to prevent newly-installed modules from being imported shortly after the installation of a wheel package. Users should still review package contents prior to installation.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "pip"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "26.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-6357"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/pip/pull/13923"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/pip/commit/b369bfc96cc524e00c267e1693290e6599c36bad"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pypa/pip"
}, {
"type" : "WEB",
"url" : "https://ichard26.github.io/blog/2026/04/whats-new-in-pip-26.1/#security-fixes"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2026/04/27/7"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-829" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-05T22:05:46Z",
"nvd_published_at" : "2026-04-27T15:16:20Z"
}
}