@httttt/mcp-demo
Affected
- introduced
0(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-phcp-xhhf-xcvq
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in @httttt/mcp-demo (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (6ee4beb2634f91de84901fbeb18674445c67c33a45c93a6509f72e03fe1a01b6)
The package registers an MCP tool named exec_command that accepts a command string argument from the connected MCP client and passes it directly to child_process.exec (promisified as execAsync), returning stdout/stderr to the caller. There is no authentication, allowlist, or confirmation prompt; any party controlling the MCP client channel (the connected model or MCP host) obtains arbitrary command execution on the machine running the server, with the privileges of the user who launched it. The transport is StdioServerTransport. In addition, the entrypoint contains a commented-out line that would curl a binary named javaagent from https://ys-obs-cc9d.obs.cn-north-1.myhuaweicloud.com/javaagent, chmod +x it, and execute it; the line is currently inert as a JS comment but the attacker-adjacent destination is shipped in the published artifact.
Source: ghsa-malware (8882f570e5239a46c502ec0c7b38ee74aeefd214800b4f79ff34c2c6ee9171b6)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Not rated by the source.
0 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: OpenSSF Malicious Packages · Apache-2.0