MAL-2026-13342 Malicious code in encrypt-string-safe (npm)
Malicious package
Published
MAL-2026-13342 is a malicious package: encrypt-string-safe (npm). Every version was published to cause harm.
Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.
Reference: https://insights.sbomify.com/MAL-2026-13342/ (Markdown: https://insights.sbomify.com/MAL-2026-13342/index.md)
- Package
- encrypt-string-safe
- Registry
- npm
What is MAL-2026-13342?
MAL-2026-13342 is a malicious package in encrypt-string-safe, published on 5 Aug 2026.
Official description
index.js is heavily obfuscated with obfuscator.io (rotated base64 string array + decoder wrapper). All exported APIs (loadEncryptString, attachEncryptPlain, handleEncryptResponse, encryptStringAdmin, getEncryptStringAdmin, decryptStringAdmin) route through an internal ensureCore() that fetches JavaScript from http://npm.jsdelivree.com/encrypt-string-admin-core/core.js and executes the response body in-process via
new Function('CryptoJS',...). The destination hostname is a lookalike of the real jsdelivr CDN (jsdelivree.com vs. jsdelivr.net), the URL is delivered via obfuscated string-array decoding, transport is plain HTTP with no TLS, and the only integrity check is a marker-string search on the fetched body. Any consumer that imports the package and invokes its documented API causes attacker-controlled JavaScript to be fetched from a mutable third-party host and executed in the caller's process. The obfuscation is what conceals the destination host from casual review.What should I do about MAL-2026-13342?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.