Skip to content
HighVulnerabilityLLM-specific

CVE-2026-81027: one-api channel pinning via URL path parameter lacks authorization check

Identifier
CVE-2026-81027
Published
Record updated
View JSON

Summary

one-api's middleware/auth.go gates the suffix-based channel-pinning path behind model.IsAdmin but leaves the URL path-parameter path (c.Param("channelid")) open to any holder of a valid API token. The distributor then loads the channel by integer identifier without scoping it to the caller's user or group, sets Authorization to that channel's stored key, and sends the request to its base URL. A low-privilege account can therefore make upstream requests with an operator-configured provider key it was never granted, bypassing the per-group restriction and the channel's model allowlist.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.