Critical Malicious Code Vulnerability in ts-tweetnacl-utils Package
Summary
MAL-2026-438: Malicious code in ts-tweetnacl-utils (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 ts-tweetnacl-utils package is a utility library for cryptographic functions, primarily used in applications requiring secure messaging and data integrity. It is part of the npm ecosystem and is designed to provide developers with easy access to cryptographic primitives. However, this package has been compromised, leading to severe security risks for any application that utilizes it.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the ts-tweetnacl-utils package. This code can fully compromise any computer that has the package installed, allowing unauthorized access to sensitive information, including secrets and keys. The malicious nature of the code has been confirmed by security researchers, and it poses a significant threat to the integrity of affected systems. Users are advised to treat any system with this package as compromised, as the removal of the package may not eliminate all traces of the malicious software.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ts-tweetnacl-utils
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 entirely. If your application relies on ts-tweetnacl-utils, consider finding an alternative library that provides similar functionality without the associated risks.
Conclusion
The ts-tweetnacl-utils package has been identified as containing malicious code that poses a significant risk to any system using it. Immediate action is required to uninstall the package and secure any compromised information. Regular monitoring and the use of tools like Vulert can help prevent future vulnerabilities.
See every vulnerability recorded for ts-tweetnacl-utils →
FAQ
Immediately uninstall the package using 'npm uninstall ts-tweetnacl-utils' and rotate any sensitive information that may have been compromised.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring any signup.
Failure to remove the package can lead to unauthorized access to your system, potentially compromising sensitive data and allowing attackers to control your environment.
While there are no direct workarounds, ensure that you have removed the package and rotated any exposed keys. Consider implementing additional security measures such as firewalls and intrusion detection systems.
While removing the package is essential, there is no guarantee that all malicious software has been eliminated. It is advisable to conduct a thorough security audit of your system.