Vibe-Trading FastAPI endpoints permit unauthenticated access, file upload, and an RCE chain
GHSA-v2f8-6655-7grj · published 2026-10-02
- Severity
- Critical
- CVSS score
- 10.0
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 0.1.7
5 findings — unauthenticated full-API exposure (F1, lead Critical), read-side authorization gap that persists even with API_AUTH_KEY set (F2), unauthenticated file write of .py/.sh/.yaml to a server-returned path (F3), default-permissive CORS that combines with a loopback-only check to grant any browser page on whitelisted localhost ports credentialed cross-origin access (F-A4), and partial API-key disclosure via _mask_secret() (F-A5).
Upgrade vibe-trading-ai to 0.1.7 or later.
1. F1 / F3 — require_auth() must fail closed when API_AUTH_KEY is not set. Either raise on startup if the env var is empty, or generate a random per-install key and emit a one-time bootstrap message. Replace the if not api_key: return shortcut at line 303 with explicit handling of dev-vs-production. 2. F2 — Apply Depends(require_auth) to all read-side @app.get() decorators (/runs*, /sessions*, /swarm/runs*). The current docstring at line 289 ("Only write endpoints use this dependency") describes the bug rather than design intent. …
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| vibe-trading-ai | PyPI | >= 0.1.0, < 0.1.7 | 0.1.7 |
- CriticalMCP Path Traversal Allows Full-Filesystem Read and JWT Secret Exfiltration Leading to Account Takeoverlangflow, langflow-base
- Critical@zereight/mcp-gitlab: Unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeover@zereight/mcp-gitlab
- CriticalFlowise RCE via SQL Database Chain Nodeflowise, flowise-components
- CriticalLangroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file callslangroid
- Criticalfast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protectionfast-mcp-telegram
- CriticalMCP Toolbox HTTP tool path parameters allow traversal to unintended endpointsgithub.com/googleapis/mcp-toolbox
- CriticalVibe-Trading LLM-callable tools permit command execution, code injection, and SSRFvibe-trading-ai
- HighVibe-Trading file-read tools expose arbitrary server-readable filesvibe-trading-ai
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.