Critical Malicious Code Vulnerability in ts-tweetnacl-utils Package

ts-tweetnacl-utils Updated 21 Jan 2026

Summary

21/01/2026
CRITICAL
No i
Critical
Not published

MAL-2026-438: Malicious code in ts-tweetnacl-utils (npm). Affected versions are not published. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback