Skip to main content
MalwarePublished

lodash-lib (npm) · Malicious Code

Affects lodash-libSource GCVE Database

0

Malicious package : remove lodash-lib and rotate any secrets on hosts that installed it.

Data as of 19 Aug 2026, 14:49 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-14182

What to do

Remove lodash-lib 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
npmlodash-libAffected
  • =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 lodash-lib package version 1.0.0 on npm is a malicious typosquatting package. It exports an empty object but executes a postinstall script that decodes and sends platform information to a hardcoded IP address, then downloads and runs an unverified executable from a GitHub repository unrelated to the package author. This behavior includes bridging execution to Windows hosts on WSL environments. No official patch or remediation guidance is available.

References

Community reviews

Loading reviews…