<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-08T18:33:11.977811+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/fkie_cve-2026-55157</id>
    <title>fkie_cve-2026-55157</title>
    <updated>2026-10-08T18:33:11.996168+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>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.</p>
      </div>
    </content>
    <link href="https://db.gcve.eu/vuln/fkie_cve-2026-55157"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-49mq-fc6q-3h46</id>
    <title>GHSA-49mq-fc6q-3h46 — Token Optimizer MCP: OS command injection in smart_user via username in get-user-info</title>
    <updated>2026-10-08T18:33:11.996226+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> npm: @ooples/token-optimizer-mcp</p>
<p>### Summary</p>
<p>`token-optimizer-mcp` is vulnerable to OS command injection in the `smart_user` tool.</p>
<p>The `get-user-info` operation accepts a user-controlled `username` argument and later interpolates it into a shell command executed through `execAsync()`:</p>
<p>```ts
getent passwd "${username}" || grep "^${username}:" /etc/passwd
```</p>
<p>Although the value is wrapped in double quotes, POSIX shells still evaluate command substitution such as `$(...)` and backticks inside double quotes. As a result, an MCP client can provide a crafted username such as:</p>
<p>```text
$(id &gt; /tmp/TOKEN_OPTIMIZER_SMART_USER_ID)
```</p>
<p>and execute arbitrary local commands with the privileges of the user running the MCP server.</p>
<p>This is a CWE-78 OS command injection issue.</p>
<p>Tested version:</p>
<p>```text
@ooples/token-optimizer-mcp v5.0.1
MCP serverInfo.name: token-optimizer-mcp
MCP serverInfo.version: 0.2.0
```</p>
<p>This issue is not related to the current `npm audit` dependency advisories. The vulnerability is in `token-optimizer-mcp`'s own tool implementation.</p>
<p>---</p>
<p>### Details</p>
<p>The vulnerable code path is in the `smart_user` implementation.</p>
<p>The `username` argument is eventually passed into a shell command similar to:</p>
<p>```ts
const { stdout: passwdOut } = await execAsync(
  `getent passwd "${username}" || grep "^${username}:" /etc/passwd`
);
```</p>
<p>The problem is that `username` is controlled by the MCP tool caller and is inserted into a command string executed by a shell.</p>
<p>Double quotes do not make this safe. In POSIX she…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-49mq-fc6q-3h46"/>
  </entry>
</feed>
