Skip to main content
MalwarePublished

lodhash-cli (npm) · Malicious Code

Affects lodhash-cliSource GCVE Database

0

Malicious package : remove lodhash-cli and rotate any secrets on hosts that installed it.

Data as of 19 Aug 2026, 14:46 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-14183

What to do

Remove lodhash-cli 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
npmlodhash-cliAffected
  • =1.0.0
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 lodhash-cli is a typosquatting malicious package mimicking lodash. Its main entry exports an empty object, but its postinstall script downloads and executes a malicious binary from a personal GitHub repository without verification. The script also sends an HTTP beacon to a suspicious IP address indicating successful installation. It attempts to execute the payload on Windows hosts and Windows Subsystem for Linux (WSL) environments. The package version 1.0.0 is affected. No CVSS score is available, but the behavior indicates high risk due to arbitrary code execution and persistence.

References

Community reviews

Loading reviews…