Skip to main content
MalwarePublished

module-index-cache (npm) · Malicious Code

Affects module-index-cacheSource GCVE Database

0

Malicious package : remove module-index-cache and rotate any secrets on hosts that installed it.

Data as of 30 Jun 2026, 23:39 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-6700

What to do

Remove module-index-cache 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
npmmodule-index-cacheAffected
  • =1.0.1
  • =1.0.0
  • =1.0.2
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 'module-index-cache' versions 1.0.0, 1.0.1, and 1.0.2 contains malicious code that executes during installation. The package's install scripts unconditionally run code that harvests sensitive environment variables, npm authentication tokens, git configuration, and other host data. This information is exfiltrated to an attacker-controlled server. The package also includes scripts to facilitate dependency confusion attacks by publishing under multiple aliases to target private registries.

References

Community reviews

Loading reviews…