Malicious Code Injection in nokire-nanali32: A Threat to npm Packages
Summary
MAL-2025-163285: Malicious code in nokire-nanali32 (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 package 'nokire-nanali32' is part of a series of npm packages that emerged during the tea.xyz token reward campaign. These packages are designed to manipulate the npm registry by automatically generating and publishing derivative packages with randomized names. This behavior is intended to inflate developer reputation scores for rewards associated with the tea protocol, making it a significant concern for developers using npm.
Vulnerability Detail
The vulnerability in 'nokire-nanali32' stems from its malicious code that modifies the package.json file. It removes private flags, alters version numbers, and generates random package names, which leads to the continuous republishing of these variants. This not only pollutes the npm registry but also poses risks to developers who may unknowingly install these compromised packages, potentially leading to further exploitation or data breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-nanali32
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
As a temporary workaround, you can prevent the installation of this malicious package by using npm's package-lock.json file to monitor dependencies. Ensure that your project does not include 'nokire-nanali32' in any of its dependencies. You can also use tools like Vulert to monitor your project for vulnerabilities without needing to access the code directly.
Conclusion
The 'nokire-nanali32' package poses a significant threat due to its malicious code designed to manipulate the npm registry. Developers should take immediate action to remove this package and utilize tools like Vulert to monitor for vulnerabilities in their projects. Staying informed and proactive is essential in maintaining the security of your applications.
See every vulnerability recorded for nokire-nanali32 →
FAQ
'nokire-nanali32' is an npm package that is part of a malicious campaign aimed at manipulating the npm registry for token rewards.
The vulnerability can lead to the installation of compromised packages, which may contain malicious code that can exploit your application or compromise sensitive data.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.
You should immediately uninstall 'nokire-nanali32' using the command 'npm uninstall nokire-nanali32' and review your project's dependencies for any other malicious packages.
Yes, Vulert provides a service that monitors your project for open-source vulnerabilities in real-time using just the package-lock.json file.