Skip to main content
MalwarePublished

ls-env-config (npm) · Malicious Code

Affects ls-env-configSource GCVE Database

0

Malicious package : remove ls-env-config and rotate any secrets on hosts that installed it.

Data as of 15 Jul 2026, 12:39 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-10678

What to do

Remove ls-env-config 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
npmls-env-configAffected
  • =1.0.5
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 ls-env-config version 1.0.5 contains malicious code that executes automatically during installation via a preinstall script. This script runs an index.js file that performs an HTTP GET request to a third-party collaborator domain, confirming code execution on the installer's machine and leaking host and network information. This behavior is consistent with a dependency-confusion probe, causing unintended network callbacks to an external host on every install.

References

Community reviews

Loading reviews…