@shiftmarkets/shift-exchange-root (npm) · Malicious Code
Affects @shiftmarkets/shift-exchange-rootSource GCVE Database
Malicious package : remove @shiftmarkets/shift-exchange-root and rotate any secrets on hosts that installed it.
Data as of 5 Aug 2026, 15:42 UTC
Malicious package
Published to npm · OSV MAL-2026-12509
What to do
Remove @shiftmarkets/shift-exchange-root from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npm@shiftmarkets/shift-exchange-root | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The npm package @shiftmarkets/shift-exchange-root versions 1.9.9, 2.9.9, and 3.9.9 contains malicious code in its postinstall script. This script collects detailed host information including hostname, username, sudo user, home directory, internal IP addresses, DNS domain, environment variable names filtered by credential-related keywords, and CI indicators. It then sends this data over unencrypted HTTP to an unaffiliated external IP address. The package's main functionality does not align with its name, and the script's comment misleadingly claims only non-sensitive telemetry is collected, contradicting the actual data gathered.