devplatform-spa-tokens (npm) · Malicious Code
Affects devplatform-spa-tokensSource GCVE Database
Malicious package : remove devplatform-spa-tokens and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 16:15 UTC
Malicious package
Published to npm · OSV MAL-2026-12785
What to do
Remove devplatform-spa-tokens 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 |
|---|---|---|
| npmdevplatform-spa-tokens | 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 devplatform-spa-tokens version 35.3.1 contains malicious code that downloads and executes a platform-specific binary from anonymous Cloudflare Workers hostnames and fallback domains. The payload is saved with disguised filenames and executed detached from the main process. The package advertises a TokenManager API as a decoy, but its true behavior is to act as a dropper for malicious binaries. Execution is controlled by environment variables and a local cache file to evade detection.