pip: Path traversal in console_scripts/gui_scripts entry point names allows installing scripts outside of target directoryGHSA-wf93-45jw-7689
HIGHFix: pypa/pip#14000GHSA-wf93-45jw-7689 is a high-severity (CVSS 8) Path Traversal vulnerability in pip. A fix is available for pip — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-wf93-45jw-7689.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
GHSA-wf93-45jw-7689 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.
Where this sits among everything scored
Of 386,684 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
pipReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.
Description
pip would treat console_scripts and gui_scripts as paths instead of file names without sanitizing the resolved absolute path to the installation directory, leading to entry points being installed outside the installation directory.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐍PyPI | pip | all versions | 26.1.2pip install --upgrade 'pip==26.1.2' |
Affected Products
pippypaDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for pip, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update pip to 26.1.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-wf93-45jw-7689 is resolved across your whole dependency graph.
Workarounds
Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
This Important flaw in pip's wheel installation process allows for arbitrary file overwrite due to path traversal. An attacker could exploit this by convincing a user to install a specially crafted malicious Python wheel. While file overwrites are limited to the installing user's permissions, using `pip install` with…
To mitigate this issue, users should avoid installing Python wheels from untrusted sources. It is strongly advised against using `pip install` with elevated privileges, such as `sudo`, when installing wheels. Additionally, administrators should inspect `entry_points.txt` within wheels for path separators or absolute paths before installation.Source: Red Hat security advisory for GHSA-wf93-45jw-7689 (CC BY 4.0)
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Ansible Automation Platform 2.5 for RHEL 8 | automation-controller-0:4.6.30-2.el8ap | RHSA-2026:42078 |
| Red Hat Ansible Automation Platform 2.6 for RHEL 9 | automation-controller-0:4.7.14-3.el9ap | RHSA-2026:42079 |
| Red Hat Enterprise Linux 10 | python3.14-pip-0:25.2-3.el10_2.5 | RHSA-2026:36193 |
| Red Hat Enterprise Linux 9 | python3.14-pip-0:25.2-3.el9_8.5 | RHSA-2026:36315 |
| Red Hat Ansible Automation Platform 2.5 | ansible-automation-platform-25/controller-rhel8:1784049109 | RHSA-2026:42144 |
| Red Hat Ansible Automation Platform 2.6 | ansible-automation-platform-26/de-minimal-rhel9:1782711769 | RHSA-2026:34374 |
| Red Hat Ansible Automation Platform 2.6 | ansible-automation-platform-tech-preview/metrics-service-rhel9:1783969139 | RHSA-2026:42132 |
| Red Hat Ansible Automation Platform 2.6 | ansible-automation-platform-26/controller-rhel9:1785753810 | RHSA-2026:50479 |
Frequently Asked Questions
Is GHSA-wf93-45jw-7689 in your dependencies?
Find it across PyPI, including transitive dependencies.