Skip to content

fix: remove unregistered internal packages from install_requires (dependency confusion)#235

Open
x4v13r64 wants to merge 1 commit intomicrosoft:mainfrom
x4v13r64:fix/remove-nonexistent-pypi-packages
Open

fix: remove unregistered internal packages from install_requires (dependency confusion)#235
x4v13r64 wants to merge 1 commit intomicrosoft:mainfrom
x4v13r64:fix/remove-nonexistent-pypi-packages

Conversation

@x4v13r64
Copy link
Copy Markdown

Four setup.py files in this repo declare internal packages (vibe-core, vibe-common, vibe_core) as install_requires dependencies using their bare PyPI-style names. None of these package names are registered on PyPI.

Because they appear in install_requires, pip resolves them transitively from PyPI when any of the affected packages is installed. An attacker who registers vibe-core or vibe-common on PyPI (PEP 503 normalisation means one registration covers both spellings) gains code execution in any environment installing vibe_agent, vibe_common, vibe_server, or vibe_notebook.

This PR removes the four unregistered names from install_requires in:

  • src/vibe_agent/setup.py — removes vibe-core, vibe-common
  • src/vibe_common/setup.py — removes vibe_core
  • src/vibe_server/setup.py — removes vibe-core, vibe-common
  • src/vibe_notebook/setup.py — removes vibe_core

Security impact: A single PyPI registration compromises all four components simultaneously and gives the attacker access to the Azure credentials (identity tokens, storage keys, Cosmos DB connections) these packages are configured to use.

@x4v13r64
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant