Critical Malicious Code Vulnerability in js-unpack Package
Summary
MAL-2026-707: Malicious code in js-unpack (npm). Affected versions are not published. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The js-unpack package is a JavaScript library commonly used in Node.js applications for unpacking and processing JavaScript code. It is designed to facilitate the analysis and transformation of JavaScript code, making it a useful tool for developers. However, this package has been identified as containing malicious code that can compromise the security of any system it is installed on.
Vulnerability Detail
The vulnerability stems from the presence of embedded malicious code within the js-unpack package. This code can grant unauthorized access to the system, allowing attackers to control the affected machine fully. As a result, any secrets or sensitive information stored on the compromised computer may be at risk. The malicious nature of this code has been confirmed through security assessments, indicating that systems running this package should be considered fully compromised.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall js-unpack
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There are no effective workarounds for this vulnerability other than removing the package and securing the system. Ensure that you monitor your system for any signs of compromise and take necessary actions to secure your environment.
Conclusion
The js-unpack package has been identified as containing malicious code that poses a significant security risk. Users are advised to remove the package immediately and secure their systems. Regular monitoring and the use of tools like Vulert can help in identifying and managing such vulnerabilities in the future.
See every vulnerability recorded for js-unpack →
FAQ
js-unpack is a JavaScript library used for unpacking and processing JavaScript code in Node.js applications.
The malicious code can grant unauthorized access to the system, allowing attackers to control the affected machine and potentially steal sensitive information.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
Immediately remove the js-unpack package and rotate any secrets or keys stored on the affected system.
Currently, there is no patched version available. The best course of action is to remove the package entirely.