clamp4js (npm) · Malicious Code
Affects clamp4jsSource GCVE Database
Malicious package : remove clamp4js and rotate any secrets on hosts that installed it.
Data as of 26 Nov 2026, 06:54 UTC
Malicious package
Published to npm · OSV MAL-2026-20645
What to do
Remove clamp4js 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 |
|---|---|---|
| npmclamp4js | 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 clamp4js npm package versions 1.0.5 and 1.0.13 contain malicious postinstall scripts that download and save a payload from remote URLs. The payload, active on Windows systems, steals a wide range of sensitive credentials and data from various developer tools and cloud services, then uploads this data to a Telegram bot. It also downloads and executes a secondary malicious executable before deleting it. Earlier versions 1.0.2 and 1.0.9 have disabled or empty loaders. This malicious activity is linked to known stage URLs used by another malware campaign (clampony).