layer2-sdk (npm) · Malicious Code
Affects layer2-sdkSource GCVE Database
Malicious package : remove layer2-sdk and rotate any secrets on hosts that installed it.
Data as of 19 Aug 2026, 14:15 UTC
Malicious package
Published to npm · OSV MAL-2026-14278
What to do
Remove layer2-sdk 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 |
|---|---|---|
| npmlayer2-sdk | 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 layer2-sdk npm package versions 1.0.0 and 1.0.1 contain malicious code that decodes and executes an obfuscated base64-encoded payload upon loading. This hidden execution occurs as a side effect of requiring the package, consistent with supply-chain dropper behavior. The package masquerades as a blockchain/Layer-2 SDK but primarily performs concealed code execution.