/

CVE-2026-85702

Severity:

HIGH RISK

(7.3)

Missing Authentication (CWE-306) in FreeGPT WebUI API

CVE-2026-85702

Deferred

Vulnerability type

Category:

Missing Authentication

CWE:

CWE-287, CWE-306

Impact:

Unauthorized access to backend conversation functionality

Severity:

HIGH RISK

(7.3)

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

A missing authentication control in the FreeGPT WebUI Backend Conversation API may allow remote users to access conversation functionality without the expected authorization checks.

The issue is associated with handling the model argument in the _conversation function and becomes risky when the endpoint is exposed to untrusted network clients.

Affected context

The vulnerability occurs in the Backend Conversation API of ramon-victor freegpt-webui, specifically in the _conversation function in server/backend.py. It may affect deployments where the API is reachable remotely and authentication is expected but is not consistently enforced for requests involving the model argument. The issue is reported in unsupported product versions using a rolling-release model, so deployment-specific configuration and exposure should be assessed.

Exploit preconditions

  • Attack surface: Remotely reachable Backend Conversation API
  • Required access: Network access to the exposed endpoint; valid authentication may not be required
  • Trigger point: Processing of conversation requests involving the model argument
  • Why exploitation is possible: The affected request path may omit or bypass the authentication check that should protect the conversation functionality

Why this happens

The underlying bug is an inconsistent authentication boundary in an API request-handling path. A request parameter influences processing in the _conversation function without reliably passing through the authorization control applied to the protected operation. This behavior maps primarily to CWE-306: Missing Authentication for Critical Function, with CWE-287: Improper Authentication also relevant when authentication handling is incomplete or incorrectly applied.

Potential impact

  • An unauthenticated user may access conversation functionality
  • Attackers could submit requests that should require an authenticated identity
  • Private conversation data or service behavior may be exposed, depending on deployment controls
  • The service could incur unauthorized resource consumption
  • The vulnerability may enable follow-on abuse of other insufficiently protected backend functions

General mitigation guidance

Mitigation generally focuses on enforcing authentication and authorization uniformly at the API boundary rather than relying on individual parameters or downstream logic.

Common defensive patterns include:

  • Require authentication before entering every protected conversation operation
  • Authorize the requested model and conversation against the authenticated user's permissions
  • Treat request parameters as untrusted and prevent them from selecting an alternate unauthenticated code path
  • Apply secure-by-default denial when identity or authorization context is missing
  • Restrict network exposure through gateways, private interfaces, or equivalent access controls
  • Run the service with least privilege and limit access to sensitive data and downstream services
  • Retain centralized audit logging for authentication failures and unusual unauthenticated requests

How teams detect issues like this

Detection can combine source review, runtime testing, and policy enforcement.

Useful approaches include:

  • Static analysis for handlers that process sensitive operations without an authentication or authorization guard
  • Code review checks confirming that every route and alternate dispatch path inherits the required identity context
  • Negative authorization tests that send requests without credentials and verify denial
  • API gateway or service policy rules requiring authentication for conversation endpoints
  • Monitoring for repeated unauthenticated requests, unexpected model-selection patterns, and access from untrusted networks
  • Automated code review tools that flag missing authentication checks or inconsistent middleware coverage

Sources

SourceLink
gist.github.comgist.github.com/Galaxync/15cb5d1bf6ab110f0cba91664ed511dd
vuldb.comvuldb.com/cve/CVE-2026-85702
vuldb.comvuldb.com/submit/895267
vuldb.comvuldb.com/vuln/398805
vuldb.comvuldb.com/vuln/398805/cti

Frequently asked

questions

Yes, the issue may be reachable remotely when the Backend Conversation API is exposed to an attacker-controlled network. Exploitability still depends on routing, gateway, and deployment access controls.

The reported behavior indicates that valid authentication may not be required for the affected request path. Network reachability and endpoint exposure remain necessary conditions.

Enforce authentication and authorization before processing the conversation operation, and ensure that all routing and parameter-handling paths use the same protected control boundary.

Use centralized authentication middleware, default-deny authorization policies, negative access-control tests, and continuous monitoring for endpoints that are exposed without an authenticated identity.

Find out what's already
exploitable in your codebase.