Malicious Code Injection in nokire-nanali2 Package
Summary
MAL-2025-163271: Malicious code in nokire-nanali2 (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 nokire-nanali2 package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. However, it has been identified as containing malicious code that compromises its integrity and the security of applications that utilize it.
Vulnerability Detail
The vulnerability in the nokire-nanali2 package stems from its inclusion in a series of malicious packages that modify the package.json file to remove private flags and alter version numbers. This allows the package to generate random names and continuously republish variants, polluting the npm registry. The malicious payload can lead to unauthorized access and exploitation of applications that depend on this package, posing significant security risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-nanali2
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 the nokire-nanali2 package by using npm's package-lock.json file to monitor dependencies. Ensure that your project does not include this package by checking your package-lock.json for any references to nokire-nanali2 and removing them if found.
Conclusion
The nokire-nanali2 package contains malicious code that poses significant security risks to applications using it. It is crucial to remove this package and monitor your dependencies for any vulnerabilities. Utilizing tools like Vulert can help you stay informed about potential threats in your open-source software.
See every vulnerability recorded for nokire-nanali2 →
FAQ
The nokire-nanali2 package is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The malicious code can modify your package.json file, remove private flags, and republish variants, which can lead to unauthorized access and exploitation of your application.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring any signup.
If you have installed nokire-nanali2, you should uninstall it immediately using the command 'npm uninstall nokire-nanali2' and check for any other affected packages.
Currently, there is no patched version available for nokire-nanali2. It is advisable to remove the package from your project until a secure version is released.