/

CVE-2026-12795

Severity:

HIGH RISK

(7.3)

Missing Authentication (CWE-287) in litellm SSO Debug Flow

CVE-2026-12795

Analyzed

Vulnerability type

Category:

Missing Authentication

CWE:

CWE-287, CWE-306

Impact:

Authentication Bypass

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 SSO Debug Flow of BerriAI litellm allows remote access to functionality without properly verifying the caller's identity.

When exposed in production-like environments, this flaw can let an attacker interact with SSO-related debug endpoints, bypassing expected access controls and trust boundaries.

Affected context

The vulnerability occurs in the SSO Debug Flow within litellm's proxy management endpoints, specifically in ui_sso.py, where JSON responses are generated via json.dumps.

It becomes relevant in deployments where the SSO debug or management interface is reachable over the network and where administrators assume that upstream or implicit protections are enforcing authentication, but the affected endpoint does not consistently verify client identity.

Exploit preconditions

  • Attack surface: Network-accessible SSO debug/management endpoint in the litellm proxy.
  • Required access: Ability to send HTTP requests to the affected SSO Debug Flow endpoint; no valid credentials may be required due to the flaw.
  • Trigger point: Invoking the vulnerable management or debug route that relies on json.dumps responses without enforcing authentication checks.
  • Why exploitation is possible: The endpoint processes and returns sensitive SSO or management-related data without robust authentication or session verification, effectively trusting unauthenticated callers.

Why this happens

The core issue is an incomplete or missing authentication check on a management/debug endpoint, mapping to CWE-287: Improper Authentication and related CWE-306: Missing Authentication for Critical Function.

The SSO debug route appears to expose operational or configuration details without verifying that the requester is an authenticated and authorized administrator.

This represents a design-level flaw where sensitive functionality is exposed through an HTTP interface that assumes, rather than enforces, appropriate identity and access control.

Potential impact

  • An attacker could access SSO debug data that may reveal configuration, tokens, or integration details.
  • An attacker may influence or observe SSO-related flows, potentially aiding further attacks against authentication.
  • Misuse of management endpoints could lead to unauthorized changes in SSO or proxy behavior, depending on available operations.
  • Exposure of internal information can assist in planning subsequent compromise of related systems.

General mitigation guidance

Mitigation typically focuses on enforcing strict, explicit authentication and authorization on all management and debug endpoints.

Defensive patterns include:

  • Requiring strong authentication (e.g., session-based, OAuth, or mutual TLS) for any SSO or management route.
  • Applying role-based access control policies so only privileged users can access debug flows.
  • Isolating administrative and debug interfaces on dedicated networks or behind VPNs and administrative gateways.
  • Disabling or heavily restricting debug endpoints in production, or gating them behind configuration flags that default to secure, non-exposed behavior.

How teams detect issues like this

Detection can rely on both code and configuration review:

  • Static analysis and manual review looking for management or debug endpoints that omit explicit authentication/authorization decorators or middleware.
  • Automated checks ensuring that all routes under management or SSO namespaces are covered by authentication policies.
  • Runtime monitoring and logging to identify unusual access patterns to SSO debug endpoints, including unauthenticated calls.
  • Security testing and fuzzing of admin interfaces to verify that endpoints respond with appropriate errors when credentials are missing or invalid.

Sources

SourceLink
gist.github.comgist.github.com/YLChen-007/9b13c75a3a73187a4082cc6df0b100d3
vuldb.comvuldb.com/cve/CVE-2026-12795
vuldb.comvuldb.com/submit/811286
vuldb.comvuldb.com/vuln/372557
vuldb.comvuldb.com/vuln/372557/cti

Frequently asked

questions

Yes. If the SSO Debug Flow endpoint is exposed over the network, a remote attacker can attempt to access it without valid credentials.

The attacker generally only needs network-level access to the affected management or SSO debug endpoint. Due to the missing authentication, valid user credentials might not be required.

Apply strict, explicit authentication and authorization checks to all SSO, management, and debug routes, and ensure these endpoints are not reachable from untrusted networks by default.

Adopt a policy that all administrative and debug interfaces must be authenticated and authorized, enforce this via shared middleware or route guards, and include these checks in code review, threat modeling, and automated security testing.

Find out what's already
exploitable in your codebase.