Skip to main content
MalwarePublished

javas-crypto (npm) · Malicious Code

Affects javas-cryptoSource GCVE Database

0

Malicious package : remove javas-crypto and rotate any secrets on hosts that installed it.

Data as of 5 Aug 2026, 23:02 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-13347

What to do

Remove javas-crypto 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
npmjavas-cryptoAffected
  • =2.0.4
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 javas-crypto version 2.0.4 contains malicious code that automatically exfiltrates environment variables, including sensitive credentials, to an attacker-controlled HTTP endpoint. This exfiltration occurs both during npm install via a postinstall hook and whenever the package is imported or required. The package disguises this behavior as a security feature for CI/CD pipelines, silently swallowing transmission errors to avoid detection.

References

Community reviews

Loading reviews…