Description
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.
Published: 2026-08-11
Score: 8.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Sub2API is an AI API gateway that allows tenants to issue requests on behalf of the operator's upstream accounts. From versions 0.1.135 through 0.1.168 this gateway’s POST /responses/*subpath handler concatenated client‑supplied subpaths directly into the upstream URL without validation. This omission of sanitisation let an authenticated tenant craft requests that target arbitrary upstream endpoints using the operator’s pooled credentials. The result is that the tenant can move the operator’s credentials to any endpoint controlled by the attacker, enabling unauthorized data access, service disruption or further privilege escalation on downstream services. This vulnerability aligns with CWE‑22 (Path Traversal) and CWE‑441 (Blind Inter‑Service Communication).

Affected Systems

Affected deployments are those running Wei‑Shaw Sub2API versions 0.1.135 through 0.1.168. The flaw is fixed in 0.1.169 and later releases, so systems using these versions remain vulnerable.

Risk and Exploitability

The CVSS base score of 8.5 indicates a high severity impact under the conditions of authenticated access. EPSS is below 1 %, suggesting that active exploitation may be rare at this time, but the low probability does not diminish the need for remediation. The vulnerability is not yet in CISA’s KEV catalog, yet tenants who can authenticate to the gateway can directly induce the service to issue arbitrary outbound HTTP requests. Because the attacker must be a legitimate tenant, any compromise of tenant credentials or social engineering sufficient to gain tenant login would allow the exploit. The exploitation path is straightforward: authenticated tenant submits a POST payload containing a crafted subpath; the gateway forwards the request to an attacker‑chosen upstream endpoint using the shared credentials. The likely attack vector is an authenticated tenant with the ability to craft a malicious subpath.

Generated by OpenCVE AI on August 12, 2026 at 22:00 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Sub2API to version 0.1.169 or newer to apply the vendor fix that sanitises subpath inputs.
  • Reconfigure the gateway to use tenant‑specific upstream credentials or disable the POST /responses/*subpath endpoint for non‑administrative tenants until a patch can be applied.
  • Validate or whitelist the subpath parameter to ensure it does not contain ".." or other characters that could trigger path traversal before constructing the upstream URL.

Generated by OpenCVE AI on August 12, 2026 at 22:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 13 Aug 2026 05:15:00 +0000

Type Values Removed Values Added
First Time appeared Wei-shaw
Wei-shaw sub2api
Vendors & Products Wei-shaw
Wei-shaw sub2api

Tue, 11 Aug 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 11 Aug 2026 16:15:00 +0000

Type Values Removed Values Added
Description 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.
Title Sub2API: Path traversal in the Responses subpath routes lets an authenticated tenant relay requests to arbitrary upstream endpoints using pooled account credentials
Weaknesses CWE-22
CWE-441
References
Metrics cvssV3_1

{'score': 8.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N'}


Subscriptions

Wei-shaw Sub2api
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-11T16:42:29.167Z

Reserved: 2026-08-10T19:37:41.444Z

Link: CVE-2026-73079

cve-icon Vulnrichment

Updated: 2026-08-11T16:42:23.132Z

cve-icon NVD

Status : Received

Published: 2026-08-11T16:17:39.713

Modified: 2026-08-11T17:19:15.747

Link: CVE-2026-73079

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T05:00:10Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-441

    Unintended Proxy or Intermediary ('Confused Deputy')