Skip to main content
MalwarePublished

xcryption (npm) · Malicious Code

Affects xcryptionSource GCVE Database

0

Malicious package : remove xcryption and rotate any secrets on hosts that installed it.

Data as of 7 Sep 2026, 17:38 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-15916

What to do

Remove xcryption 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
npmxcryptionAffected
  • 1.0.0 – 1.0.3
4 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The xcryption npm package versions 1.0.0, 1.0.1, 1.0.2, and 1.0.3 contain malicious code in a postinstall script. This script downloads and executes an unverified payload from an anonymous file-sharing service during installation, allowing arbitrary code execution on the installer's machine. The package disguises itself as a benign text transformation utility but performs harmful actions silently, suppressing errors and forcing a successful install status.

References

Community reviews

Loading reviews…