Skip to main content
MalwarePublished Updated

encrypt-string-safe (npm) · Malicious Code

Affects encrypt-string-safeSource GCVE Database

0

Malicious package : remove encrypt-string-safe and rotate any secrets on hosts that installed it.

Data as of 19 Aug 2026, 16:09 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-13342

What to do

Remove encrypt-string-safe 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
npmencrypt-string-safeAffected
  • =2.2.0
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 'encrypt-string-safe' version 2.2.0 contains malicious code that fetches and executes attacker-controlled JavaScript from a lookalike domain over unencrypted HTTP. The package's index.js is heavily obfuscated to conceal this behavior. Any use of the package's documented API results in remote code execution within the caller's process.

References

Community reviews

Loading reviews…