token-optimizer-mcp: Token Optimizer MCP: Unauthenticated Path Traversal in Dashboard Session Log API Endpoints
What fixes it
- 5.1.0@ooples/token-optimizer-mcp, npmOSV
npm install @ooples/token-optimizer-mcp@5.1.0
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
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, the dashboard HTTP server in token-optimizer-mcp exposes /api/session-summary and /api/session-events with no authentication middleware — any network-accessible client can reach them without credentials. Both handlers concatenate the caller-supplied sessionId query parameter directly into a filesystem path via path.join, and Node.js normalizes .. segments at resolution time, allowing an unauthenticated attacker to read any .jsonl file reachable from the server's filesystem. This issue has been patched in version 5.1.0.
Text from CVE List
Affected versions 2
- token-optimizer-mcpaffected: < 5.1.0CVE List
- @ooples/token-optimizer-mcp, npmfrom first release, fixed in 5.1.0OSV