Authorization Bypass in one-api via Channel Pinning
An authorization flaw in one-api allows authenticated users to bypass role checks and per-group restrictions by manipulating channel ID parameters to access unauthorized upstream provider keys.
CVE search metadata
CVE search record: CVE-2026-81027. Severity: high. CVSS: 8.5. KEV: no. Product: one-api. Brief: Authorization Bypass in one-api via Channel Pinning. Brief link: https://feed.craftedsignal.io/briefs/2026-08-one-api-auth-bypass/
The one-api service contains an authorization bypass vulnerability (CVE-2026-81027) within its channel-pinning logic in middleware/auth.go. The application provides two methods for specifying a channel: a suffix on the API key and a URL path parameter. While the API key suffix method properly validates the user's administrative status, the URL path-parameter branch fails to perform any role checks before processing the request.
An attacker with a valid, low-privilege API token can manipulate the "channelid" parameter in the URL. The application then uses this identifier to load the corresponding channel's credentials without verifying if the caller is authorized to access that specific channel or group. Consequently, the server proxies requests to the upstream provider using the operator's configured keys, effectively bypassing security controls including per-group restrictions and model allowlists. This allows unauthorized access to service provider endpoints and potentially incurs costs or exposes sensitive configuration data.
Impact
Successful exploitation allows low-privileged users to bypass access controls and interact with unauthorized upstream LLM providers or services using the organization's API keys. This can lead to unauthorized resource consumption, potential data exfiltration via third-party providers, and the circumvention of established cost-management and policy-based controls. The vulnerability affects the core authorization flow of the one-api platform.
Recommendation
- Upgrade one-api to the version containing the fix for CVE-2026-81027 immediately.
- Review application logs for anomalous patterns in requests containing channel identifiers in the URI path.
- Monitor for requests where the user context does not align with the requested channel ID or administrative roles.
Immediate actions
Patch one-api instance to the version remediating CVE-2026-81027
Threat Hunt
Search web access logs for API requests with channelid parameters where the requester lacks administrative permissions.
Data: Web server access logs
Mitigations
Patch software
CVE-2026-81027