candy-candy-core (npm) · Malicious Code
Affects candy-candy-coreSource GCVE Database
Malicious package : remove candy-candy-core and rotate any secrets on hosts that installed it.
Data as of 5 Aug 2026, 15:45 UTC
Malicious package
Published to npm · OSV MAL-2026-12521
What to do
Remove candy-candy-core 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 |
|---|---|---|
| npmcandy-candy-core | 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 candy-candy-core npm package version 35.2.7 contains malicious code that executes upon import. It downloads a platform-specific binary from attacker-controlled domains, writes it to temporary directories under decoy filenames, sets executable permissions, and spawns it detached via shell commands. The package uses obfuscation and telemetry-style comments to disguise its malicious behavior and maintains persistence through a lockfile. This behavior constitutes remote binary execution triggered simply by requiring the package.