Skip to main content
MalwarePublished

docker-api-client (npm) · Malicious Code

Affects docker-api-clientSource GCVE Database

0

Malicious package : remove docker-api-client and rotate any secrets on hosts that installed it.

Data as of 5 Aug 2026, 22:17 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-13280

What to do

Remove docker-api-client 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

ProductAffectedFixed in
npmdocker-api-clientAffected
  • =2.0.2
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 docker-api-client@2.0.2 is a malicious typosquat of the legitimate dockerode package. When required, it collects extensive environment information including hostname, username, home directory, platform, current working directory, and the entire process environment variables. This data is serialized, encoded, and exfiltrated via HTTPS GET requests to a Telegram bot controlled by the attacker. The environment variables often contain sensitive credentials such as CI/CD tokens, cloud service keys, and database secrets, leading to a severe information leak. The package also exposes unrelated wallet functions, indicating it is a lure rather than a genuine Docker client. No patch or fix is currently documented for this malicious package.

References

Community reviews

Loading reviews…