CVE-2026-58169: Vibe-Trading DNS Rebinding Authentication Bypass & RCE
Vibe-Trading versions before 0.1.10 suffer from a DNS rebinding flaw that allows an attacker to trick a user's browser into making authenticated API requests to a local Vibe-Trading server without proper authorization. By hosting a malicious webpage and manipulating DNS responses, an attacker can bypass the application's bearer-token authentication, reach code execution endpoints, and run arbitrary commands on the server. The vulnerability exists because the application trusts the originating IP address for loopback connections while failing to validate the HTTP Host header, combined with overly permissive CORS settings that credential requests. Once authenticated through this bypass, an attacker can also steal credentials by modifying LLM and data-source configuration settings.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 7.5 HIGH · CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- Weaknesses (CWE)
- CWE-346
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-06-30 / 2026-07-14
NVD description (verbatim)
Vibe-Trading before 0.1.10 contains a DNS rebinding authentication bypass vulnerability that allows remote attackers to bypass bearer-token authentication by exploiting the server's trust of TCP peer addresses for loopback clients combined with missing Host header validation while binding to 0.0.0.0 with credentialed CORS. Attackers can craft a malicious DNS rebinding page to issue authenticated requests to the local API server, reach the shell execution endpoint with a bash-enabled preset, and achieve remote code execution as the API process user while also overwriting LLM and data-source settings to exfiltrate credentials.
7 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability chain exploits three authentication and validation gaps: (1) the server binds to 0.0.0.0 and relies on TCP peer address trust to recognize loopback clients, (2) the Host header is not validated during request handling, and (3) CORS is configured to allow credentialed cross-origin requests. An attacker crafts a DNS rebinding attack where a domain initially resolves to the attacker's IP but later resolves to 127.0.0.1 or the target's local IP. The victim's browser makes requests to the malicious domain, which after the rebind resolves to localhost, allowing the attacker's JavaScript to issue authenticated requests using the victim's stored credentials (via CORS with credentials). When combined with a bash-enabled preset configuration, this grants access to the /shell or equivalent code-execution endpoint, leading to RCE as the Vibe-Trading process user. The attacker can then reconfigure LLM providers and data sources to exfiltrate sensitive credentials or API keys.
Business impact
Organizations running Vibe-Trading in environments where users access the web UI can be compromised by a single user clicking a malicious link while logged in. RCE as the API process user typically means data exfiltration, lateral movement within the network, and potential compromise of connected AI services and data sources. Credential theft from LLM and data-source settings amplifies the blast radius, potentially exposing integrations with cloud services, databases, and AI platforms. Teams relying on Vibe-Trading for data orchestration or AI workflows risk service interruption and loss of confidentiality over sensitive configuration and training data.
Affected systems
Vibe-Trading releases before version 0.1.10 are vulnerable. This includes all 0.1.x versions prior to 0.1.10 and any earlier versions. Deployments are at risk if: (1) the application is bound to 0.0.0.0 (default for containerized deployments), (2) users access the web interface from untrusted networks, (3) bash-enabled presets are configured, and (4) CORS is not restricted. Development and staging environments with default configurations are particularly exposed.
Exploitability
The attack requires user interaction (the victim must click a malicious link while logged into Vibe-Trading), which the CVSS vector reflects as AC:H (high complexity). However, once the user visits the attacker's page, the exploit is largely automatic—DNS rebinding and credential exfiltration happen in the background. No special network positioning or system access is required. Exploitation can be weaponized via phishing emails, social engineering, or malicious advertisements. The attack succeeds against out-of-the-box configurations, making it practical for targeted campaigns against Vibe-Trading users.
Remediation
Immediately upgrade to Vibe-Trading 0.1.10 or later, which addresses the DNS rebinding and Host header validation issues. Review and restrict CORS configuration to only necessary origins rather than allowing all cross-origin requests with credentials. Bind the application to localhost or a private IP address instead of 0.0.0.0 if it does not require external access. Disable bash-enabled presets unless explicitly required. For applications already deployed, implement a WAF rule or reverse proxy that validates the Host header against a whitelist of known legitimate hostnames. Consider network segmentation to limit exposure of the Vibe-Trading API to trusted networks.
Patch guidance
Upgrade to Vibe-Trading 0.1.10 or later. Verify the patch is applied by checking the version string in the application's UI or API (e.g., GET /api/version). After patching, test authentication and CORS behavior to ensure bearer tokens are validated correctly regardless of DNS resolution. If running in a container, update the image tag and redeploy. For users on versions before 0.1.10, interim mitigation includes restricting network access to the Vibe-Trading API to trusted IP ranges and disabling bash presets in the configuration.
Detection guidance
Monitor for DNS A-record queries followed by repeated requests to localhost or 127.0.0.1 from the same source IP, which indicate DNS rebinding attempts. Log and alert on requests with mismatched Host headers (e.g., Host: attacker.com connecting to 127.0.0.1). Watch for cross-origin requests with credentials (preflight OPTIONS followed by authenticated POST/PUT). Audit changes to LLM provider settings, data-source credentials, or preset configurations, particularly when triggered from unusual network origins. Check Vibe-Trading application logs for unauthenticated or anomalously authenticated access to /shell or code-execution endpoints. Implement browser-based DNS rebinding detection if feasible.
Why prioritize this
This vulnerability combines high-impact RCE with moderate exploitability (user interaction required), earning a CVSS 7.5/HIGH rating. The critical factors are: (1) unauthenticated RCE is possible after bypassing authentication via DNS rebinding, (2) credential theft from LLM/data-source settings extends the attack scope, and (3) default configurations are vulnerable. While user interaction (clicking a link) raises the bar slightly, the attack is nearly automatic once triggered. Organizations with internet-facing Vibe-Trading instances or users accessing from untrusted networks should prioritize patching within 24–48 hours.
Risk score, explained
The CVSS 3.1 score of 7.5 reflects: Network attack vector (AV:N), High complexity due to user interaction requirement (AC:H), no privilege escalation (PR:N, UI:R), unchanged scope (S:U), and High impact across confidentiality, integrity, and availability (C:H/I:H/A:H). The High complexity acknowledges that the user must visit a malicious page, but once they do, RCE and credential exfiltration are nearly guaranteed. The score correctly penalizes the severity of unauthenticated code execution and multi-stage compromise (authentication bypass → RCE → credential theft).
Frequently asked questions
Can this vulnerability be exploited if Vibe-Trading is bound to localhost only?
No. If the application is bound to 127.0.0.1 or localhost exclusively, DNS rebinding attacks cannot reach it from an external attacker's page. Binding to localhost is the simplest mitigation if the API does not require external access.
Do I need to worry about this if I have disabled CORS?
Disabling CORS or restricting it to specific trusted origins significantly reduces attack surface. However, you should still upgrade to 0.1.10 to address the underlying Host header validation flaw. An attacker could potentially bypass weak CORS configurations, so patch and restrict together.
Can I detect if I've been exploited by this vulnerability?
Check your Vibe-Trading logs for: (1) requests to /shell or code-execution endpoints with unexpected origins or timestamps, (2) changes to LLM provider or data-source credentials when you did not make them, and (3) authentication bypass patterns (requests with no or invalid bearer tokens that succeeded). Review firewall logs for DNS rebinding indicators—multiple A-record queries for the same domain in quick succession.
Will upgrading to 0.1.10 break my existing integrations?
Upgrading should be safe in most cases. The patch primarily hardens validation (Host header checks and CORS behavior). If you have integrations that rely on misconfigured CORS or unusual Host headers, you may need to update those integrations post-patch. Test in a staging environment first.
This analysis is based on the CVE description and CVSS vector as of the publication date. Actual attack success depends on specific deployment configurations, network controls, and user behavior. Organizations should validate patch applicability in their environment and consult the official Vibe-Trading security advisory for the most current remediation guidance. No exploit code or proof-of-concept is provided; this document is for defensive planning only. Source: NVD (public-domain), retrieved 2026-08-09. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2026-10846HIGHNLnet Labs ldns DNS Spoofing Vulnerability - Off-Path Poisoning Attack
- CVE-2026-11693HIGHGoogle Chrome Site Isolation Bypass via Plugin Flaw
- CVE-2026-41700HIGHSpring for GraphQL WebSocket Cross-Site Hijacking Vulnerability
- CVE-2026-42558HIGHXibo Stored XSS and Iframe Sandbox Escape in Data Connector
- CVE-2026-44698HIGHHome Assistant Companion App Token Theft Vulnerability
- CVE-2026-44894HIGHNetty QUIC Amplification Attack via NoQuicTokenHandler Default
- CVE-2026-45674HIGHNetty DNS CNAME Validation Bypass (CVSS 8.7 HIGH)
- CVE-2026-47265HIGHAIOHTTP Cookie Leak on Cross-Origin Redirects (CVSS 7.5)