<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Token-Optimizer-Mcp - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/token-optimizer-mcp/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Sat, 15 Aug 2026 02:07:02 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/token-optimizer-mcp/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>OS Command Injection in token-optimizer-mcp via smart_user</title><link>https://feed.craftedsignal.io/briefs/2026-08-token-optimizer-mcp-rce/</link><pubDate>Sat, 15 Aug 2026 02:07:02 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-token-optimizer-mcp-rce/</guid><description>The token-optimizer-mcp package is vulnerable to OS command injection via the smart_user tool due to insecure interpolation of user-supplied input into shell commands, allowing arbitrary command execution with application privileges.</description><content:encoded><![CDATA[<p>The <code>@ooples/token-optimizer-mcp</code> package (versions prior to 5.1.0) contains an OS command injection vulnerability within the <code>smart_user</code> tool's <code>get-user-info</code> operation. The application insecurely interpolates the user-provided <code>username</code> argument directly into a shell command string that is subsequently executed using <code>execAsync()</code>.</p>
<p>The implementation uses the pattern <code>getent passwd &quot;${username}&quot; || grep &quot;^${username}:&quot; /etc/passwd</code>. Because POSIX shells evaluate command substitution syntax such as <code>$(...)</code> and backticks even when enclosed in double quotes, the application fails to sanitize malicious inputs. An attacker capable of invoking the <code>smart_user</code> tool through an MCP client can inject shell metacharacters to execute arbitrary commands with the identity and permissions of the process running the MCP server. This vulnerability, identified as CVE-2026-55157, poses a significant risk to the integrity and confidentiality of the host environment.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker gains access to an MCP client that can interact with the token-optimizer-mcp server.</li>
<li>The attacker identifies the <code>smart_user</code> tool as a potential vector for interaction with the operating system.</li>
<li>The attacker crafts a malicious JSON-RPC request for the <code>tools/call</code> method targeting the <code>smart_user</code> tool.</li>
<li>The <code>username</code> argument is populated with an injection payload, such as <code>$(id &gt; /tmp/pwned)</code>.</li>
<li>The MCP server receives the request and passes the malicious string into the <code>get-user-info</code> tool implementation.</li>
<li>The <code>execAsync()</code> function executes the shell command containing the attacker-controlled payload.</li>
<li>The POSIX shell parses the command substitution inside the double quotes, triggering the execution of the injected command.</li>
<li>The injected command runs with the privileges of the MCP server, potentially leading to system compromise or data exfiltration.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows for arbitrary code execution with the privileges of the user running the MCP server process. This can lead to unauthorized access to system resources, potential lateral movement, and the execution of malicious tasks such as file creation or data exfiltration. The vulnerability impacts all environments where <code>@ooples/token-optimizer-mcp</code> version 5.0.1 or earlier is deployed.</p>
<h2 id="recommendation">Recommendation</h2>
<ol>
<li>Upgrade <code>@ooples/token-optimizer-mcp</code> to version 5.1.0 or later immediately to patch CVE-2026-55157.</li>
<li>Implement input validation and sanitization for all user-supplied arguments passed to shell execution functions.</li>
<li>Replace calls to shell-interpreting functions like <code>execAsync()</code> with safer alternatives that do not invoke a shell (e.g., using <code>execFile()</code> with distinct argument arrays).</li>
<li>Deploy the suggested Sigma rule to monitor for child processes spawned by the MCP server process.</li>
</ol>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category></item></channel></rss>