Executive brief
Vibe-Trading is an algorithmic trading platform. A security vulnerability in its local API server allows a malicious website to bypass authentication if a user visits the site while the trading software is running. This could allow an attacker to remotely execute commands on the user's computer, steal login credentials for trading accounts, or disrupt active trading operations.
Technical details
The Vibe-Trading local API server (FastAPI-based) incorrectly trusts any request originating from the loopback interface (127.0.0.1), bypassing the API_AUTH_KEY bearer token check. Because the server binds to 0.0.0.0 by default and lacks Host header validation, it is susceptible to DNS rebinding attacks. An attacker can use a malicious webpage to trick a victim's browser into sending authenticated requests to the local API. By targeting the '/swarm/runs' endpoint with built-in presets that enable shell tools (like bash), an attacker can achieve remote code execution (RCE) as the user running the API. Additionally, attackers can manipulate LLM and data-source settings to exfiltrate credentials. This was patched in version 0.1.10 by requiring explicit authentication for sensitive endpoints and implementing Host header validation.
Affected products
- HKUDS Vibe-Trading before 0.1.10
Timeline
- 2026-06-15: patched: Fixes merged into main branch via multiple pull requests.
- 2026-06-30: advisory: CVE-2026-58169 published.
References
- https://github.com/HKUDS/Vibe-Trading/pull/241
- https://github.com/HKUDS/Vibe-Trading/pull/242
- https://github.com/HKUDS/Vibe-Trading/pull/243
- https://github.com/HKUDS/Vibe-Trading/pull/245
- https://github.com/HKUDS/Vibe-Trading/pull/293
- https://github.com/HKUDS/Vibe-Trading/releases/tag/v0.1.10
- https://www.vulncheck.com/advisories/vibe-trading-loopback-trust-and-missing-host-validation-enable-dns-rebinding-authentication-bypass-and-remote-code-execution