9router: Unauthenticated LLM proxy access via /codex rewrite authorization bypass
decolua 9router
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| 9router npm |
|
|
Original description
9Router is an AI router & token saver. Prior to 0.5.2, 9router protects /v1, /v1beta, /api/v1, and /api/v1beta in src/dashboardGuard.js but omits /codex before next.config.mjs rewrites /codex/* to /api/v1/responses. A remote unauthenticated attacker can send requests to /codex/* to bypass the API-key gate and cause the server to make upstream provider calls using operator-stored LLM provider credentials. This issue is fixed in version 0.5.2.
From the CVE record · GitHub_M