CVE-2026-6357: Pip Pip Vulnerable To Inclusion Of Vulnerability

MODERATE
Advisory Identifier: GHSA-jp4c-xjxw-mgf9
CWE-829
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-6357
GHSA Identifier GHSA-jp4c-xjxw-mgf9
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-829: Inclusion of Functionality from Untrusted Control Sphere
Affected Product Pip
Package Ecosystem PyPI
Published Date
Last Updated

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 fixed: 26.1
pip install pip>=26.1
Verify Direct and Transitive Dependencies

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

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.

CVE-2026-6357 Affected Pip Versions

1 component(s)
Fixed Versions:
26.1
Product / Package Ecosystem Affected Versions Fixed Version
pip
PyPI
< 26.1
26.1

References

Frequently Asked Questions

What is CVE-2026-6357?
CVE-2026-6357 is a security vulnerability in Pip involving pip Vulnerable to Inclusion of Functionality from Untrusted Control Sphere under CWE-829: Inclusion of Functionality from Untrusted Control Sphere.
Which Pip versions are affected?
Affected versions include releases prior to 26.1 across affected packages: pip.
What version fixes CVE-2026-6357?
Upgrading to 26.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pip affected?
Yes, pip is affected in releases prior to 26.1. Upgrade your dependency to 26.1 or later.
What CWE is associated with CVE-2026-6357?
CVE-2026-6357 is classified under CWE-829: Inclusion of Functionality from Untrusted Control Sphere (The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.).
How can I check PyPI dependencies for CVE-2026-6357?
Run the dependency tree command: 'pip show pip'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}