giantswarm (npm) · Malicious Code
Affects giantswarmSource GCVE Database
Malicious package : remove giantswarm and rotate any secrets on hosts that installed it.
Data as of 13 Jul 2026, 09:58 UTC
Malicious package
Published to npm · OSV MAL-2026-10203
What to do
Remove giantswarm 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 |
|---|---|---|
| npmgiantswarm | 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 'giantswarm' version 22.0.1 contains malicious code that executes a preinstall hook running 'node index.js' during installation. This script collects detailed host information including hostname, platform, architecture, user details, and current working directory, then sends this data to a hardcoded external server. The package impersonates the legitimate Giant Swarm vendor namespace, suggesting a dependency confusion attack. It contains no legitimate functionality and lacks author, description, and license metadata.