| Field | Value |
|---|---|
| CVE / NVD | CVE-2026-55157 |
| Date (index) | 2026-08-14 |
| Affected product (index) | Token Optimizer MCP: OS command injection in smart_user via username |
| GHSA ID | GHSA-49mq-fc6q-3h46 |
| OWASP MCP Top 10 (2025) | MCP05 - Command Injection & Execution |
| Published / disclosed | 2026-08-14 |
| Ecosystem | Application / upstream project |
| Component | Token Optimizer MCP: OS command injection in smart_user via username |
| EPSS score | Not yet scored (FIRST EPSS as of 2026-09-26) |
| CVSS score | High / 8.4 |
| CWE | CWE-78 |
| Affected versions | < 5.1.0 |
| Fixed versions | None published in NVD/OSV |
| Fix status | Unfixed |
| Exploit status | Public advisory / public CVE record |
| Notes | Added during 2026-09-07 gap review against NVD, GitHub Advisory Database, OSV, OpenCVE, and related MCP advisory searches. |
@ooples/token-optimizer-mcp before 5.1.0 is vulnerable to OS command injection in the smart_user get-user-info operation. The user-controlled username is interpolated into a shell command; command substitution inside double quotes can execute arbitrary local commands as the MCP server process. Fixed in 5.1.0.
Exposure depends on deployment: reachable MCP transports, enabled MCP tools, local listeners without robust Host/Origin/authentication checks, or trusted workspace/project MCP configuration treated as safe input.
The issue maps to CWE-78; review the upstream advisory for the exact vulnerable code path and patched implementation.
This issue affects an MCP server, SDK, gateway, client, integration, or MCP-enabled workflow where tool execution, transport exposure, secrets, files, or authorization boundaries are part of the risk surface.
Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory.
Upgrade to the vendor-fixed version where available. Restrict MCP listeners to trusted networks, require authentication for HTTP/SSE/Streamable HTTP transports, validate Host and Origin headers, constrain filesystem and command-execution tools, and treat project/workspace MCP configuration as untrusted input.
Prefer vendor advisories and defensive write-ups; do not host weaponized exploit code in this repository.