/

CVE-2026-114108

Severity:

CRITICAL RISK

(9.8)

Missing Authentication (CWE-306) in Vibe-Trading API

CVE-2026-114108

Deferred

Vulnerability type

Category:

Missing Authentication

CWE:

CWE-306

Impact:

Unauthenticated Remote Code Execution and Sensitive Data Exposure

Severity:

CRITICAL RISK

(9.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

CVE-2026-114108 is a critical missing-authentication vulnerability in HKUDS Vibe-Trading that can expose its FastAPI surface when API_AUTH_KEY is unset. An unauthenticated attacker may access sessions, submit messages that invoke shell-capable tooling, upload script files, read session histories, and obtain partial API keys.

CVE-2026-114108 is a critical missing-authentication vulnerability in HKUDS Vibe-Trading that can expose its FastAPI surface when API_AUTH_KEY is unset. An unauthenticated attacker may access sessions, submit messages that invoke shell-capable tooling, upload script files, read session histories, and obtain partial API keys.

Affected context

The vulnerability occurs in Vibe-Trading deployments from 0.1.0 through versions before 0.1.7 when the API authentication setting is absent or otherwise left unset. In that configuration, the authentication check may return without enforcing credentials across sensitive FastAPI endpoints, including session messaging, file upload, and history access.

The vulnerability occurs in Vibe-Trading deployments from 0.1.0 through versions before 0.1.7 when the API authentication setting is absent or otherwise left unset. In that configuration, the authentication check may return without enforcing credentials across sensitive FastAPI endpoints, including session messaging, file upload, and history access.

Exploit preconditions

  • Attack surface: The Vibe-Trading FastAPI service and its exposed application endpoints
  • Required access: Network reachability to the service; no valid credentials may be required when API_AUTH_KEY is unset
  • Trigger point: Requests to session, messaging, upload, or history-related endpoints
  • Why exploitation is possible: The authentication guard returns early when the expected API key configuration is missing, allowing requests to reach privileged functionality
  • Attack surface: The Vibe-Trading FastAPI service and its exposed application endpoints
  • Required access: Network reachability to the service; no valid credentials may be required when API_AUTH_KEY is unset
  • Trigger point: Requests to session, messaging, upload, or history-related endpoints
  • Why exploitation is possible: The authentication guard returns early when the expected API key configuration is missing, allowing requests to reach privileged functionality

Why this happens

The underlying bug is an authentication control that treats a missing security configuration as a reason to skip enforcement. This maps to CWE-306: Missing Authentication for Critical Function, because sensitive operations remain reachable without verifying the caller's identity. The insecure pattern is fail-open authorization logic in which an unset credential requirement grants access instead of disabling the service or rejecting requests.

The underlying bug is an authentication control that treats a missing security configuration as a reason to skip enforcement. This maps to CWE-306: Missing Authentication for Critical Function, because sensitive operations remain reachable without verifying the caller's identity. The insecure pattern is fail-open authorization logic in which an unset credential requirement grants access instead of disabling the service or rejecting requests.

Potential impact

  • Unauthenticated attackers could invoke shell-capable application tooling
  • The service may be used for arbitrary command execution with the process account's privileges
  • Attackers could upload Python or shell script files
  • Session histories and other application data could be disclosed
  • Partial API keys or other secrets may be exposed
  • The host, container, or connected systems could be compromised depending on runtime privileges
  • Unauthenticated attackers could invoke shell-capable application tooling
  • The service may be used for arbitrary command execution with the process account's privileges
  • Attackers could upload Python or shell script files
  • Session histories and other application data could be disclosed
  • Partial API keys or other secrets may be exposed
  • The host, container, or connected systems could be compromised depending on runtime privileges

General mitigation guidance

Mitigation generally focuses on fail-closed authentication and reducing the privileges of exposed application functions.

Common defensive patterns include:

  • Require authentication for every sensitive endpoint, including session messaging, file upload, and history access
  • Treat missing or invalid authentication configuration as a deployment error rather than bypassing checks
  • Separate administrative, execution, data-access, and upload permissions using least privilege
  • Avoid exposing shell-capable tools through unauthenticated or broadly authorized APIs
  • Restrict uploaded file types, storage locations, and execution permissions
  • Run the service with a dedicated low-privilege identity and isolate it from sensitive host resources
  • Store credentials outside application responses and redact secrets from histories and logs
  • Place the API behind network controls, rate limits, and policy enforcement that provide defense in depth

Mitigation generally focuses on fail-closed authentication and reducing the privileges of exposed application functions.

Common defensive patterns include:

  • Require authentication for every sensitive endpoint, including session messaging, file upload, and history access
  • Treat missing or invalid authentication configuration as a deployment error rather than bypassing checks
  • Separate administrative, execution, data-access, and upload permissions using least privilege
  • Avoid exposing shell-capable tools through unauthenticated or broadly authorized APIs
  • Restrict uploaded file types, storage locations, and execution permissions
  • Run the service with a dedicated low-privilege identity and isolate it from sensitive host resources
  • Store credentials outside application responses and redact secrets from histories and logs
  • Place the API behind network controls, rate limits, and policy enforcement that provide defense in depth

How teams detect issues like this

High-level detection can combine configuration review, source analysis, and runtime monitoring:

  • Use static analysis to identify authentication guards that return success when keys, tokens, or configuration values are absent
  • Review endpoint registration and dependency wiring to confirm that all sensitive routes require authentication
  • Flag fail-open conditionals and default-allow branches in authentication and authorization code
  • Test deployments with missing, malformed, expired, and unauthorized credentials to verify rejection behavior
  • Monitor requests to session messaging, upload, and history endpoints, especially from unauthenticated clients
  • Alert on unexpected shell-tool invocation, script uploads, and access to secret-like response content
  • Enforce CI and deployment policies requiring authentication configuration before the service becomes reachable
  • Automated code review and API security testing tools may help identify unprotected routes and authorization bypasses

High-level detection can combine configuration review, source analysis, and runtime monitoring:

  • Use static analysis to identify authentication guards that return success when keys, tokens, or configuration values are absent
  • Review endpoint registration and dependency wiring to confirm that all sensitive routes require authentication
  • Flag fail-open conditionals and default-allow branches in authentication and authorization code
  • Test deployments with missing, malformed, expired, and unauthorized credentials to verify rejection behavior
  • Monitor requests to session messaging, upload, and history endpoints, especially from unauthenticated clients
  • Alert on unexpected shell-tool invocation, script uploads, and access to secret-like response content
  • Enforce CI and deployment policies requiring authentication configuration before the service becomes reachable
  • Automated code review and API security testing tools may help identify unprotected routes and authorization bypasses

Sources

SourceLink
github.comgithub.com/HKUDS/Vibe-Trading/security/advisories/GHSA-v2f8-6655-7grj
vulncheck.comvulncheck.com/advisories/hkuds-vibe-trading-before-0.1.7-missing-authentication-in-fastapi-server-enabling-rce

Frequently asked

questions

It may be remotely exploitable when the FastAPI service is network-reachable and API_AUTH_KEY is unset, because the affected endpoints can accept requests without valid credentials.

Not necessarily. The described failure is that authentication enforcement can be skipped when the API key configuration is missing, so network access to the service may be sufficient.

Authentication should fail closed: sensitive requests must be rejected unless valid credentials are present and verified. Shell execution and file-upload capabilities should also be separately authorized and heavily restricted.

Require security-critical configuration at startup, test all protected routes with unauthenticated and unauthorized requests, apply least privilege to runtime tools, and monitor for anomalous command execution or file uploads.

It may be remotely exploitable when the FastAPI service is network-reachable and API_AUTH_KEY is unset, because the affected endpoints can accept requests without valid credentials.

Not necessarily. The described failure is that authentication enforcement can be skipped when the API key configuration is missing, so network access to the service may be sufficient.

Authentication should fail closed: sensitive requests must be rejected unless valid credentials are present and verified. Shell execution and file-upload capabilities should also be separately authorized and heavily restricted.

Require security-critical configuration at startup, test all protected routes with unauthenticated and unauthorized requests, apply least privilege to runtime tools, and monitor for anomalous command execution or file uploads.

Find out what's already
exploitable in your codebase.