spencer-braincore (npm) · Malicious Code
Affects spencer-braincoreSource GCVE Database
Malicious package : remove spencer-braincore and rotate any secrets on hosts that installed it.
Data as of 20 Nov 2026, 06:22 UTC
Malicious package
Published to npm · OSV MAL-2026-20281
What to do
Remove spencer-braincore 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 |
|---|---|---|
| npmspencer-braincore | 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 spencer-braincore npm package contains malicious code that uses the installer's authenticated WhatsApp session to silently join groups and follow channels specified by the attacker via a remotely controlled JSON list. This behavior is triggered automatically by the makeNewsletterSocket function and is not configurable by the user. The package does not steal credentials, persist on the filesystem, execute remote code, or cause destruction.