Skip to main content

one-api EUVDEUVD-2026-66603

| CVE-2026-81027 HIGH
Missing Authorization (CWE-862)
2026-08-26 VulnCheck GHSA-877p-7prq-ffj6
8.4
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain any valid low-privilege API token
  2. Delivery
    Send request to channelid URL path parameter route
  3. Exploit
    Server omits role check, loads channel record by raw integer ID
  4. Execution
    Distributor overwrites Authorization header with channel's stored provider key
  5. Persist
    Request forwarded to operator-configured upstream AI provider
  6. Impact
    Attacker consumes unauthorized provider quota and bypasses model allowlists

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires possession of any valid one-api API token, including tokens issued to low-privilege or standard user accounts - this is the sole credential gate on the vulnerable route. The attack targets the URL path parameter channel-pinning endpoint in the one-api API, which is reachable over the network by any token holder. No admin role, group membership, or special configuration is required beyond token validity. Completely unauthenticated access is not possible: the route does sit behind token authentication. The attacker must be able to send HTTP requests to the one-api instance's API. The attack is most impactful in multi-tenant deployments where multiple operator-configured channels with distinct provider keys exist and where channel IDs (sequential integers) are enumerable - both of which are normal operating conditions for one-api. Per-group channel restrictions and per-channel model allowlists provide no limiting protection once a valid token is presented.

Impact

The CVSS 4.0 score of 8.4 (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N) accurately models the threat: network-accessible, low complexity, requiring only a low-privilege token, with high confidentiality impact on the vulnerable system and high subsequent-system confidentiality impact representing exposure of the operator's upstream provider accounts. PR:L is the critical limiting factor - completely unauthenticated exploitation is not possible, but in multi-tenant one-api deployments tokens are distributed to end users by design, making the effective attacker pool potentially large. The SC:H subsequent-system impact is significant: an attacker can consume provider quota, incur operator billing costs, and access AI model tiers or capabilities outside their authorization tier. VI:L reflects the model allowlist bypass, which may have compliance or policy implications. No CISA KEV listing and no public exploit code appear in the provided data, so exploitation status is unconfirmed; however, the attack primitive (HTTP request with incremented integer path parameter) is so straightforward that independent rediscovery requires no specialized skill, making the effective exploit barrier very low despite the absence of published PoC.

Exploit ScenarioDerived

An attacker holding any valid low-privilege one-api API token sends HTTP requests to the channel-pinning URL path parameter endpoint, iterating integer channelid values (e.g., 1, 2, 3...) until a valid channel responds. For each valid channel discovered, the server transparently forwards the attacker's AI inference request using the operator's stored upstream provider API key for that channel, granting the attacker access to provider accounts, quota, and model tiers they were never authorized to use. No public exploit code has been identified, but the integer enumeration requires no special tooling beyond a standard HTTP client.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 26, 2026

Channel-pinning authorization bypass in one-api through v0.6.10 allows any holder of a valid API token to route requests through arbitrary operator-configured upstream provider channels they were never granted access to. The flaw exists because middleware/auth.go implements two channel-selection paths - a key-suffix path correctly gated by an admin role check, and a URL path parameter path (channelid) carrying no role check at all - so a low-privilege account can enumerate integer channel IDs and cause the server to forward requests bearing provider API keys (e.g., OpenAI, Anthropic) configured by the operator. The bypass defeats both per-group channel restrictions and per-channel model allowlists. No public exploit has been identified at time of analysis, but the integer-enumeration primitive is trivially reproducible from the description alone.

RemediationAI

No vendor-released patched version is identified in the available data at time of analysis; operators must verify current fix status via the GitHub issue at https://github.com/songquanpeng/one-api/issues/2410 and the VulnCheck advisory at https://www.vulncheck.com/advisories/one-api-through-0.6.10-missing-authorization-on-url-parameter-channel-pinning before any confirmed patch version can be cited. As an immediate compensating control, restrict API token issuance strictly to trusted accounts, since the attack requires any valid token - revoke tokens for guest, trial, or untrusted user accounts to eliminate the low-privilege attacker surface, with the trade-off of reduced accessibility for legitimate distributed users. Operators should also apply network-layer controls (firewall rules, VPN requirement, or reverse-proxy IP allowlisting) to limit who can reach the one-api API endpoints, reducing the pool of potential token holders who could reach the vulnerable route. To cap blast radius if exploitation occurs, rotate all upstream provider API keys stored in one-api channels and apply per-key spending limits at the provider level (e.g., OpenAI usage caps). Monitor the upstream repository and issue tracker for a fix commit or tagged release addressing the missing authorization in the channelid path parameter branch.

Affected VersionsENISA

one-api 0 ≤0.6.10

Affected Packages

euvd one_api no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

one-api is a Go-based OpenAI-compatible reverse proxy and channel aggregator (CPE: cpe:2.3:a:songquanpeng:one-api:*:*:*:*:*:*:*:*) that manages multiple upstream AI provider accounts and distributes user requests among them, enforcing per-group and per-channel access policies. The root cause is CWE-862 (Missing Authorization) - a classic dual-path access control gap in middleware/auth.go (visible in the v0.6.10 source). The key-suffix channel-pinning branch invokes model.IsAdmin() before honoring the caller's channel selection and rejects non-admins, while the URL path parameter branch reads c.Param('channelid') and passes the raw integer directly to the distributor with no role, group, or ownership check. The distributor then loads the channel record by that integer ID with no scoping to the caller's identity, overwrites the outbound Authorization header with the channel's stored provider key, and directs the request at the channel's configured base URL. The route carrying the vulnerable path parameter is protected only by token authentication, which is the baseline credential for all API users.

Know when One Api gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.4 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N
vuln.today AI 8.5 HIGH

PR:L because a valid API token is required; S:C and C:H because operator-configured upstream provider keys in other channel scopes are exposed to the attacker.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

one-api gates one of its two channel-pinning paths and not the other. middleware/auth.go permits a request to name a specific channel either through a suffix on the API key or through a URL path parameter. The suffix path is reached only after model.IsAdmin succeeds and otherwise rejects the caller, while the path-parameter branch sets the selected-channel value from c.Param("channelid") with no role check at all. The route carrying that parameter sits behind token authentication only, so any account holding a valid API token reaches it. The value flows to the distributor, which loads the channel by integer identifier with no scoping to the caller's user or group, and then sets the outbound Authorization header to that channel's stored key and directs the request at the channel's base URL. A low-privilege account can therefore pin any channel by incrementing an identifier, causing the server to make upstream requests bearing an operator-configured provider key the account was never granted, and bypassing both the per-group restriction and the channel's model allowlist.

Executive ViewAI

Why It Matters

One-api versions through 0.6.10 contain an authorization bypass that allows API token holders to access upstream provider channels (OpenAI, Anthropic, etc.) they were never granted access to, directly exposing configured provider API keys and enabling unauthorized API consumption. Organizations using one-api face immediate risk of credential compromise, service abuse, and data exfiltration through compromised provider accounts.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Implement network segmentation restricting one-api egress to only specifically authorized upstream providers via firewall rules; (2) Immediately rotate all configured provider API keys; (3) Enforce principle of least privilege by issuing separate API tokens scoped to single channels and revoke any tokens with broad multi-channel access; (4) Enable and retain detailed audit logs for all channel-selection requests to detect integer-enumeration probing; (5) Isolate one-api in a containerized environment with restrictive egress policies pending patch availability; (6) Monitor for unusual provider API usage patterns indicating unauthorized access.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Prevalence
Low
niche self-hosted AI proxy, limited enterprise production footprint
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy