Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-81027— one-api through 0.6.10 Missing Authorization on URL-Parameter Channel Pinning

Quick assessment

Affected
songquanpeng one-api
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

One-API 对其两条“通道固定”(channel-pinning)路径中的其中一条实施了权限管控,而另一条没有。在 中,请求可以通过 API Key 的后缀或 URL 路径参数来指定特定的通道。其中,后缀方式只有在 校验通过后才会被处理,否则会拒绝调用者;而路径参数分支则直接从 取出通道标识,且完全未进行任何角色或权限检查。携带该参数的路由仅处于 Token 认证层之后,因此任何持有有效 API Token 的账户都能访问它。该通道标识随后被传递给分发器(distributor),分发器通过整数标识加载对应通道

CVSS 8.5 · High

Affected Version Matrix 1

VendorProduct Version RangeStatus
songquanpeng one-api ≤ 0.6.10 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-81027

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
one-api through 0.6.10 Missing Authorization on URL-Parameter Channel Pinning
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
授权机制缺失
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
songquanpeng one-api 0 ~ 0.6.10 -

II. Public POCs for CVE-2026-81027

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 6040 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-81027

登录查看更多情报信息。

Vendor Advisories for CVE-2026-81027 (1)

Proof of Concept for CVE-2026-81027 (1)

Security Blog Posts for CVE-2026-81027 (1)

Vendor Pages for CVE-2026-81027 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-81027

No comments yet


Leave a comment