@stellarshift/chain-metadata (npm) · Malicious Code
Affects @stellarshift/chain-metadataSource GCVE Database
Malicious package : remove @stellarshift/chain-metadata and rotate any secrets on hosts that installed it.
Data as of 7 Sep 2026, 20:09 UTC
Malicious package
Published to npm · OSV MAL-2026-15822
What to do
Remove @stellarshift/chain-metadata 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@stellarshift/chain-metadata | 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 @stellarshift/chain-metadata versions 1.0.1 and 1.0.3 contain malicious code in their postinstall script that fetches and executes arbitrary code from a remote, unrelated Tencent Cloud URL. This execution occurs on macOS and Windows systems with specific software installed, targeting corporate developer workstations while evading CI and sandbox environments. The package falsely advertises no network calls and zero runtime dependencies, contradicting its actual behavior. Installation of this package can lead to full system compromise.