Ooples token-optimizer-mcp
Token Optimizer MCP: OS command injection in smart_user via username in get-user-info
Token Optimizer MCP measures token savings per AI coding agent, optimizes context, and shares a live local knowledge graph across 16 CLI clients. Prior to version 5.1.0, token-optimizer-mcp is vulnerable to OS command injection in the smart_user tool. Any MCP client that can call the smart_user tool can execute arbitrary shell commands through the username argument of the get-user-info operation. The commands execute with the privileges of the user running the token-optimizer-mcp server. This issue has been patched in version 5.1.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 5.1.0
Fixed in 5.1.0
Mitigation
Upgrade token-optimizer-mcp to 5.1.0 or later.
References
- Vendor advisory github.com/ooples/token-optimizer-mcp/security…
- Patch github.com/ooples/token-optimizer-mcp/commit/b…
- Release notes github.com/ooples/token-optimizer-mcp/releases…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.