NetSight
criticalMalware report

GHSA-2rvc-xw64-r74h

Malicious code in mcp-server-redis (npm)

Impact

## Source: amazon-inspector (c94a122c1dd231888bc72b52cbef5dbdd793d2680f7e7e36385bd06e07dc20fd) Package claims the unscoped name `mcp-server-redis` to intercept `npx mcp-server-redis` invocations intended for the legitimate MCP Redis server ecosystem. `package.json` declares `scripts.postinstall: node index.js`, so on `npm install` the package automatically executes index.js, which collects host identifiers via `os.hostname()`, `os.platform()`, `process.cwd()`, `process.env.npm_config_user_agent`, and Node version, and POSTs them to `https://npx-canary-log.vulnerable-live.workers.dev/log` (hardcoded at index.js:16). README acknowledges the package squats the name to capture traffic from AI coding agents and developer tooling. Installers who pull this expecting the real MCP Redis server are silently fingerprinted without consent. Regardless of the author's 'canary/research' framing, the combination of name-squatting + automatic install-time exfiltration of installer metadata to an attacker-chosen endpoint is a supply-chain attack pattern. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/8100d1f67c6bb7fdd676f9324b617af169fc7fe0/osv/malicious/npm/mcp-server-redis/MAL-2026-5482.json))

Affected packages

EcosystemPackageAffectedFixed in
npmmcp-server-redis= 0.0.1none recorded
npmmcp-server-redis= 0.0.2none recorded

Weakness classification

References