Skip to main content
MalwarePublished

lodsh-cli (npm) · Malicious Code

Affects lodsh-cliSource GCVE Database

0

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

Data as of 19 Aug 2026, 14:47 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-14184

What to do

Remove lodsh-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
npmlodsh-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

lodsh-cli is a malicious npm package that impersonates lodash-cli. Its postinstall.js script executes automatically upon installation, performing two hostile actions: it downloads and runs a Windows executable on the victim machine enabling arbitrary remote code execution, and it sends platform information to a hardcoded IP address as an install beacon and target selector. The package uses XOR-encoded byte arrays to hide URLs and commands, evading static detection. Only version 1.0.0 is known to be affected.

References

Community reviews

Loading reviews…