devplatform-spa-feature-toggle (npm) · Malicious Code
Affects devplatform-spa-feature-toggleSource GCVE Database
Malicious package : remove devplatform-spa-feature-toggle and rotate any secrets on hosts that installed it.
Data as of 5 Aug 2026, 16:39 UTC
Malicious package
Published to npm · OSV MAL-2026-12758
What to do
Remove devplatform-spa-feature-toggle 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-feature-toggle | 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-feature-toggle version 35.8.4 contains malicious code that, upon require(), loads a script which fetches and executes an opaque payload from multiple suspicious external hosts. The payload is saved under decoy filenames in temporary directories and executed without integrity verification. The package uses environment variables and marker files to evade detection. This behavior is not part of the legitimate publisher infrastructure and represents a supply chain compromise.