{"answers":{"affected":"2 open source packages ship an affected version, including @ooples/token-optimizer-mcp.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-55157 exists.","fix":"Upgrade @ooples/token-optimizer-mcp to 5.1.0 or later.","what":"CVE-2026-55157 is a high-severity command injection vulnerability in ooples token-optimizer-mcp, published on 28 Sep 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-55157 and fix it if it is affected.\n\nWhat it is: CVE-2026-55157 is a high-severity command injection vulnerability in ooples token-optimizer-mcp, published on 28 Sep 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-55157 exists.\n\nAffected packages and fixed versions:\n- @ooples/token-optimizer-mcp (npm): affected all versions; fixed in 5.1.0\n- @ooples/token-optimizer-mcp (npm): affected all versions; fixed in 5.1.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-55157/ (Markdown: https://insights.sbomify.com/CVE-2026-55157/index.md)","id":"CVE-2026-55157","markdown":"https://insights.sbomify.com/CVE-2026-55157/index.md","name":"CVE-2026-55157","record":{"aliases":["GHSA-49mq-fc6q-3h46"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Token Optimizer MCP","requires_auth":"none","summary":"Attackers can execute arbitrary shell commands via the username argument in the smart_user tool of Token Optimizer MCP.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"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, 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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Token Optimizer MCP: OS command injection in smart_user via username in get-user-info","id":"CVE-2026-55157","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"Conflibot: Command injection via crafted pull request branch names under pull_request_target","id":"CVE-2026-55158"},"packages":[{"ecosystem":"npm","fixed":["5.1.0"],"introduced":["0"],"last_affected":[],"package":"@ooples/token-optimizer-mcp","purl":null,"source":"GHSA-49mq-fc6q-3h46"},{"ecosystem":"npm","fixed":["5.1.0"],"introduced":["0"],"last_affected":[],"package":"@ooples/token-optimizer-mcp","purl":"pkg:npm/%40ooples/token-optimizer-mcp","source":"GHSA-49mq-fc6q-3h46"}],"prev":{"headline":"Token Optimizer MCP: Unauthenticated Path Traversal in Dashboard Session Log API Endpoints","id":"CVE-2026-55156"},"products":["token-optimizer-mcp"],"published":"2026-09-28","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-01","vendors":["ooples"]},"summary":"Attackers can execute arbitrary shell commands via the username argument in the smart_user tool of Token Optimizer MCP.","url":"https://insights.sbomify.com/CVE-2026-55157/"}