Skip to content

AAK-MCP-NEOMJS-CVE-2026-18482-001: Neo.mjs file-system MCP server shell injection (no released fix yet)

Severity
HIGH
Category
Supply Chain (supply-chain)
Scanner
agent_audit_kit/scanners/mcp_cve_pins_2026_07.py
Auto-fixable
No.
SARIF name
NeoMjsFileSystemMcpShellInjection

What it detects

neo.mjs has command injection in FileSystemService.mjs of the ai/mcp/server/file-system MCP server: checkSyntax() and runPlaywrightTest() interpolate a caller-controlled absolutePath into a shell command, so an agent induced to call either tool reaches arbitrary OS command execution (CVE-2026-18482). This is a presence-only pin because there is nothing to pin to: the fix is commit 88c77fc dated 2026-08-11, and no neo.mjs release has been published since 13.1.0 on 2026-07-03 on either npm or GitHub releases. Every published version is therefore affected. Unlike the mcp-florence2 pin, this is a placeholder rather than a permanent state: upstream has written the fix and simply not shipped it, so this becomes a version floor the day a release containing that commit appears.

How to fix

There is no fixed release to upgrade to yet, so do not treat a version bump as the mitigation. Remove the ai/mcp/server/file-system server from the exposed tool set, or vendor the fix from commit 88c77fc if you build from source. If the tools must stay reachable, ensure absolutePath cannot carry shell metacharacters by passing it as an argv element rather than interpolating it into a command string. Re-pin to a version floor once upstream publishes a release containing the fix.

To confirm the finding is gone, report only this rule:

agent-audit-kit scan . --rules AAK-MCP-NEOMJS-CVE-2026-18482-001

Limitations

Reads neo.mjs in requirements*.txt at any depth and, at the project root only, in pyproject.toml, Pipfile, package.json, .mcp.json, mcp.json, claude_desktop_config.json and the Pipfile.lock, poetry.lock, uv.lock, package-lock.json, pnpm-lock.yaml and yarn.lock lockfiles, and reports every version, a future fixed one included, until the pin gets a floor. The dependency is not read when it is declared in a sub-directory manifest (packages/app/package.json) or in a lockfile format the reader does not parse (a Yarn 2+ yarn.lock). A file over 2 MB, or a lockfile over 32 MiB, is not read. A declaration nested more than 64 levels deep in package.json, a TOML manifest or an MCP config (an MCP server more than 62) is still judged, and reported without a line; a lockfile entry keeps its line at any depth.

References


All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-MCP-NEOMJS-CVE-2026-18482-001.md: the page then shows that text, with the registry reference appended under it.