Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-114108 Overview
CVE-2026-114108 is a missing authentication vulnerability [CWE-306] in HKUDS Vibe-Trading, affecting versions 0.1.0 through 0.1.6. The FastAPI server exposes administrative endpoints without authentication when the API_AUTH_KEY environment variable is not set. The require_auth() function returns early in this configuration, bypassing all access controls on sensitive routes. Unauthenticated remote attackers can post messages to /sessions/{id}/messages to execute arbitrary shell commands through the integrated BashTool. The flaw also permits arbitrary file uploads of .py and .sh content, access to session histories, and disclosure of partial API keys.
Critical Impact
Unauthenticated network attackers obtain root-level remote code execution on affected Vibe-Trading deployments without any user interaction.
Affected Products
- HKUDS Vibe-Trading 0.1.0 through 0.1.6
- FastAPI server component exposing /sessions/{id}/messages and /upload
- Deployments where API_AUTH_KEY is not configured
Discovery Timeline
- 2026-10-21 - CVE-2026-114108 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-114108
Vulnerability Analysis
The vulnerability resides in the authentication middleware of the Vibe-Trading FastAPI server. The require_auth() dependency checks the API_AUTH_KEY environment variable to determine whether request authentication is enforced. When the variable is unset, the function returns early and treats every incoming request as authorized. This fail-open behavior exposes the entire API surface to anonymous network callers.
Once past the authentication layer, attackers reach the agent orchestration endpoints. The /sessions/{id}/messages route forwards attacker-controlled content to the agent runtime, which includes a BashTool capable of executing shell commands. Because the server process typically runs with elevated privileges, these commands execute as root. The /upload endpoint accepts .py and .sh payloads, enabling attackers to stage persistent malicious code alongside command execution.
Root Cause
The root cause is an insecure default authentication pattern [CWE-306]. Instead of denying requests when API_AUTH_KEY is missing, require_auth() grants access. Operators who deploy Vibe-Trading without reading the configuration documentation inherit an unauthenticated administrative interface by default.
Attack Vector
Exploitation requires only network reachability to the FastAPI server. An attacker sends a crafted HTTP POST request to /sessions/{id}/messages containing instructions that the agent routes to BashTool. The attacker can also POST a .py or .sh file to /upload to drop payloads on the host filesystem. Session history endpoints additionally leak partial API keys that may enable pivoting to connected third-party services such as exchanges or large language model providers.
See the VulnCheck Advisory - RCE in Vibe Trading and the GitHub Security Advisory GHSA-v2f8-6655-7grj for additional technical context.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-114108
Indicators of Compromise
- Unauthenticated HTTP POST requests to /sessions/{id}/messages from untrusted source addresses
- POST requests to /upload carrying .py or .sh content types or extensions
- Unexpected child processes of the FastAPI server such as sh, bash, curl, wget, or python
- New or modified .py and .sh files in the Vibe-Trading working directory
Detection Strategies
- Inspect application logs for 2xx responses on /sessions/{id}/messages and /upload without a corresponding authenticated principal
- Alert on process execution lineage where the FastAPI worker spawns shell interpreters or network utilities
- Monitor outbound network connections from the Vibe-Trading host to previously unseen destinations
Monitoring Recommendations
- Audit the runtime environment for the presence and value of the API_AUTH_KEY variable on every deployment
- Enable request logging with source IP, path, and authentication status for every FastAPI route
- Collect filesystem integrity telemetry for the upload directory and the agent session storage path
How to Mitigate CVE-2026-114108
Immediate Actions Required
- Upgrade HKUDS Vibe-Trading to version 0.1.7 or later
- Set a strong, randomly generated API_AUTH_KEY on every Vibe-Trading instance before exposing the service
- Remove public network exposure of the FastAPI server and restrict access to trusted management networks
- Rotate any API keys, exchange credentials, or model provider tokens that were accessible to the exposed instance
Patch Information
HKUDS released version 0.1.7 to address CVE-2026-114108. The fix ensures require_auth() enforces authentication rather than returning early when API_AUTH_KEY is absent. Refer to the GitHub Security Advisory GHSA-v2f8-6655-7grj for release details.
Workarounds
- Configure a non-empty API_AUTH_KEY environment variable before starting the server to force authentication enforcement
- Place the FastAPI server behind a reverse proxy that terminates authentication and rejects anonymous requests to /sessions/* and /upload
- Run the Vibe-Trading process as an unprivileged user inside a sandboxed container to limit the impact of BashTool execution
# Configuration example
export API_AUTH_KEY="$(openssl rand -hex 32)"
# Verify the variable is set before launching the FastAPI server
[ -n "$API_AUTH_KEY" ] && uvicorn vibe_trading.server:app --host 127.0.0.1 --port 8000
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

