chain-sdk-js (npm) · Malicious Code
Affects chain-sdk-jsSource GCVE Database
Malicious package : remove chain-sdk-js and rotate any secrets on hosts that installed it.
Data as of 17 Sep 2026, 17:06 UTC
Malicious package
Published to npm · OSV MAL-2026-10608
What to do
Remove chain-sdk-js 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 |
|---|---|---|
| npmchain-sdk-js | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
chain-sdk-js is a malicious typosquatting npm package impersonating the legitimate @thetalabs/theta-js SDK. It decrypts and executes attacker-controlled code upon import, potentially compromising any system that installs it. The malicious payload is hidden in a separate dependency and performs outbound network activity. This package targets Theta blockchain developers who manage sensitive wallet and private-key data. Systems with this package installed should be considered fully compromised, and all secrets should be rotated immediately.
References
- npmjs.com/package/chain-sdk-js/v/1.0.3 (opens in a new tab)
- npmjs.com/package/chain-sdk-js/v/1.0.5 (opens in a new tab)
- npmjs.com/package/chain-sdk-js/v/1.0.4 (opens in a new tab)
- npmjs.com/package/chain-sdk-js/v/1.0.2 (opens in a new tab)
- npmjs.com/package/chain-sdk-js/v/1.0.6 (opens in a new tab)
- github.com/advisories/GHSA-2p8p-vrrr-9f6c (opens in a new tab)