hexdrift (npm) · Malicious Code
Affects hexdriftSource GCVE Database
Malicious package : remove hexdrift and rotate any secrets on hosts that installed it.
Data as of 7 Sep 2026, 18:08 UTC
Malicious package
Published to npm · OSV MAL-2026-14508
What to do
Remove hexdrift 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 |
|---|---|---|
| npmhexdrift | 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 'hexdrift' version 10.0.1 was found to contain malicious code or depend on a malicious package. Any system with this package installed should be considered fully compromised, and all stored secrets and keys must be rotated immediately from a different system. Removing the package alone may not eliminate all malicious software due to potential full system compromise.