Skip to main content
MalwarePublished Updated

crypto-javas (npm) · Malicious Code

Affects crypto-javasSource GCVE Database

0

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

Data as of 19 Aug 2026, 16:23 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-12359

What to do

Remove crypto-javas 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
npmcrypto-javasAffected
  • =2.0.4
  • =2.0.7
  • =2.0.8
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 'crypto-javas' contains malicious code that harvests environment variables and CI metadata, then exfiltrates this data to an attacker-controlled backend. This behavior occurs both during the postinstall hook and every time the package is imported or required. The package masquerades as '@wizlabs/js-crypto' but is a typosquat with a placeholder repository and generic author information. This leads to exposure of sensitive CI secrets such as AWS credentials, GitHub tokens, and other pipeline secrets. The affected versions are 2.0.4, 2.0.7, and 2.0.8. No official patch or remediation is currently documented.

References

Community reviews

Loading reviews…