carbon-monorepo (npm) · Malicious Code
Affects carbon-monorepoSource GCVE Database
Malicious package : remove carbon-monorepo and rotate any secrets on hosts that installed it.
Data as of 19 Aug 2026, 14:33 UTC
Malicious package
Published to npm · OSV MAL-2026-14229
What to do
Remove carbon-monorepo 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 |
|---|---|---|
| npmcarbon-monorepo | 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 carbon-monorepo npm package version 20.1.1 contains malicious code that executes during installation. It runs a postinstall script that collects extensive host information and sensitive data, including environment variables, system details, user information, and npm authentication tokens. This data is exfiltrated over plain HTTP to a hardcoded external server. The package masquerades as a legitimate esbuild build artifact but only delivers the malicious payload during installation.