Wei-Shaw Sub2API
Sub2API: Path traversal in the Responses subpath routes lets an authenticated tenant relay requests to arbitrary upstream endpoints using pooled account credentials
Sub2API is an AI API gateway platform designed to distribute and manage API quotas from AI product subscriptions. From 0.1.135, to 0.1.168, platform API keys issued to tenants are exchanged for upstream requests made with shared provider accounts (ChatGPT/Codex OAuth, OpenAI platform keys, or an operator-configured base URL) that belong to the operator, not to the caller. The `POST /responses/*subpath` wildcard routes spliced the client-supplied subpath into the upstream URL with no validation. This lets an authenticated tenant relay requests to arbitrary upstream endpoints using pooled account credentials via a path traversal. This vulnerability is fixed in 0.1.169.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0.1.135, <0.1.169
Fixed in 0.1.169
Mitigation
Upgrade sub2api to 0.1.169 or later.
References
- Vendor advisory github.com/Wei-Shaw/sub2api/security/advisorie…
- Patch github.com/Wei-Shaw/sub2api/pull/5137
- Patch github.com/Wei-Shaw/sub2api/commit/017f6bbd5ed…
1 more
- Release notes github.com/Wei-Shaw/sub2api/releases/tag/v0.1.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.