capacity-capacity-core (npm) · Malicious Code
Affects capacity-capacity-coreSource GCVE Database
Malicious package : remove capacity-capacity-core and rotate any secrets on hosts that installed it.
Data as of 5 Aug 2026, 15:44 UTC
Malicious package
Published to npm · OSV MAL-2026-12522
What to do
Remove capacity-capacity-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 |
|---|---|---|
| npmcapacity-capacity-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 npm package capacity-capacity-core version 35.3.7 contains malicious code that downloads and executes attacker-controlled native binaries on the host system. Upon requiring the package, it fetches platform-specific binaries from obfuscated Cloudflare Workers URLs or fallback DNS TXT records, writes them to temporary directories with disguised filenames, sets executable permissions, and runs them detached from the main process. This behavior allows arbitrary native code execution without integrity verification of the downloaded binaries.