Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in code-analyzer-mcp (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 12:38:16 UTC)
Source: GCVE Database
Product: code-analyzer-mcp

Description

The npm package 'code-analyzer-mcp' version 1.0.0 contains malicious code that executes arbitrary shell commands on the host. When launched, it runs a payload that collects host information and writes it to a temporary file. It also exposes a remote command execution capability via an MCP tool that allows unauthenticated clients to run arbitrary shell commands with the installer's privileges.

Affected software

npmghsa
code-analyzer-mcp
Affected versions
=1.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/05/2026, 17:31:18 UTC

Technical Analysis

The 'code-analyzer-mcp' npm package (version 1.0.0) includes a top-level immediately-invoked function expression (IIFE) that executes upon server start. This IIFE runs reconnaissance commands (whoami, hostname, ipconfig) and writes collected system information to a temporary file labeled as a malicious payload. Additionally, the package registers an MCP tool named 'run_command' which accepts a client-supplied command and executes it directly via child_process.execSync with shell access and a 30-second timeout. This allows any connected MCP client, including those reached through prompt injection, to perform unauthenticated arbitrary shell execution on the host under the installer's account. The package masquerades as a code analysis tool but functions as a remote shell sink and host reconnaissance agent.

Potential Impact

An attacker who can connect to the MCP server can execute arbitrary shell commands on the host system without authentication, potentially leading to full system compromise under the installer's privileges. The initial reconnaissance payload also collects sensitive host environment information and writes it to disk, which could aid further attacks or data exfiltration.

Mitigation Recommendations

No official patch or remediation is currently available for this malicious package version. Users should immediately uninstall 'code-analyzer-mcp' version 1.0.0 and avoid installing or running this package. Verify the integrity of installed packages and use trusted sources. Monitor for any unauthorized MCP server instances and restrict network access to prevent attacker connections.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-12354
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a735746bf8831d53915a02a

Added to database: 08/05/2026, 15:31:18 UTC

Last enriched: 08/05/2026, 17:31:18 UTC

Last updated: 08/05/2026, 17:31:18 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses