6cc (npm) · Malicious Code
Affects 6ccSource GCVE Database
Malicious package : remove 6cc and rotate any secrets on hosts that installed it.
Data as of 1 Dec 2026, 10:17 UTC
Malicious package
Published to npm · OSV MAL-2026-3675
What to do
Remove 6cc 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 |
|---|---|---|
| npm6cc | 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 6cc npm package versions 0.2.7, 0.2.8, and 0.3.9 contain malicious code that intercepts console output and silently exfiltrates it to attacker-controlled infrastructure. This includes forwarding console.warn, console.error, and console.dir outputs to Telegram chats, Slack webhooks, Firebase real-time databases, and imgbb. The exfiltrated data may include sensitive information such as stack traces, internal state, tokens, and personally identifiable information (PII). The malicious behavior activates immediately when the package is loaded, without requiring an install hook.