Token Optimizer MCP: OS command injection in smart_user via username in get-user-info
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-78.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ooples | token-optimizer-mcp | before 5.1.0 | 5.1.0 | Patch available | CNA |
| — | @ooples/token-optimizer-mcp (npm) | before 5.1.0 | 5.1.0 | Patch available | GHSA-49mq-fc6q-3h46 |
- token-optimizer-mcp Vendorooples Affected before 5.1.0 Fixed in 5.1.0 Patch available CNA
- @ooples/token-optimizer-mcp (npm) Vendor— Affected before 5.1.0 Fixed in 5.1.0 Patch available GHSA-49mq-fc6q-3h46
Remediation
- Fix · CNA token-optimizer-mcp (ooples) Fixed in 5.1.0
- Fix · GHSA-49mq-fc6q-3h46 @ooples/token-optimizer-mcp (npm) Fixed in 5.1.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-55157
- 2026-10-03 Alias added: GHSA-49mq-fc6q-3h46
References
More ooples vulnerabilities
- TI-2026-39845 Token Optimizer MCP: Unauthenticated Path Traversal in Dashboard Session Log API Endpoints CVSS 3.1MEDIUM 5.3
Sources
- CVE-2026-55157 · CVE Program
- CVE-2026-55157 · NVD
- FIRST EPSS
- GHSA-49mq-fc6q-3h46 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences