{"id":"CVE-2026-55157","summary":"Token Optimizer MCP: OS command injection in smart_user via username in get-user-info","details":"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.","aliases":["GHSA-49mq-fc6q-3h46"],"modified":"2026-09-30T03:47:25.640789774Z","published":"2026-09-28T17:48:16.422Z","database_specific":{"cwe_ids":["CWE-78"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55157.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/ooples/token-optimizer-mcp/releases/tag/v5.1.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55157.json"},{"type":"ADVISORY","url":"https://github.com/ooples/token-optimizer-mcp/security/advisories/GHSA-49mq-fc6q-3h46"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55157"},{"type":"FIX","url":"https://github.com/ooples/token-optimizer-mcp/commit/b4ee96dac799cbfba0a9f9c17844ce9d613cbcc7"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ooples/token-optimizer-mcp","events":[{"introduced":"0"},{"fixed":"b4ee96dac799cbfba0a9f9c17844ce9d613cbcc7"},{"fixed":"94815a16e3322101694e97561fc1dc8b5af904dc"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"5.1.0"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"versions":["v5.0.1","v5.0.0","v4.2.0","v4.1.0","v4.0.1","v4.0.0","v3.1.0","v3.0.4","v3.0.3","v3.0.2","v3.0.1","v3.0.0","v2.19.1","v2.19.0","v2.18.0","v2.17.0","v2.16.0","v2.15.2","v2.12.1","v2.15.1","v2.15.0","v2.14.0","v2.13.0","v2.12.2","v2.12.0","v2.11.0","v2.10.1","v2.10.0","v2.9.0","v2.8.0","v2.7.0","v2.6.0","v2.5.0","v2.4.1","v2.4.0","v2.3.0","v2.2.6","v2.2.5","v2.2.4","v2.2.3","v2.2.2","v2.2.1","v2.2.0","v2.1.0","v2.0.0","v1.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-55157.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}