CVE-2026-18482
Received Received - Intake

Command Injection in Neo.mjs MCP FileSystemService

Vulnerability report for CVE-2026-18482, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-20

Last updated on: 2026-08-20

Assigner: CERT/CC

Description

Neo.mjs contains a command injection vulnerability within the FileSystemService.mjs component of the ai/mcp/server/file-system MCP server, where the checkSyntax() and runPlaywrightTest() functions unsafely interpolate caller-controlled absolutePath values into shell commands, enabling arbitrary OS command execution when an AI agent is induced to invoke these tools. Commit 88c77fc fixes these vulnerabilities.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-20
Last Modified
2026-08-20
Generated
2026-08-20
AI Q&A
2026-08-20
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
neomjs neo to 88c77fc (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

Neo.mjs has a command injection flaw in the FileSystemService.mjs component. The checkSyntax() and runPlaywrightTest() functions improperly insert user-controlled file paths into shell commands, allowing attackers to execute arbitrary operating system commands if they trick an AI agent into using these tools.

Detection Guidance

To detect this vulnerability, inspect the Neo.mjs file-system MCP server for unsafe shell command execution. Check if the FileSystemService.mjs component uses exec() with user-supplied paths. Commands like grep -r 'exec(' FileSystemService.mjs or checking for metacharacters in paths may help identify vulnerable code.

Impact Analysis

An attacker could gain control of the system hosting the Neo.mjs server by exploiting this flaw. This could lead to data theft, system damage, or further network compromise if the server has access to sensitive resources.

Compliance Impact

This vulnerability could lead to unauthorized access to personal or health data, violating GDPR and HIPAA requirements for data protection and access controls. Organizations using affected versions may face compliance violations and penalties.

Mitigation Strategies

Update Neo.mjs to commit 88c77fc or later, which replaces exec() with execFile() to prevent shell command injection. Ensure path containment checks use fs.realpath and path.relative to handle symlinks safely. Avoid relying on path-based sandboxing for execution tools.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-18482. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart