Malicious Code Injection in nokire-rara22: A Threat to npm Users
Summary
MAL-2025-163309: Malicious code in nokire-rara22 (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-rara22' is part of a series of malicious 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. The primary functionality of these packages is to inflate developer reputation scores for token rewards, which compromises the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in 'nokire-rara22' originates from its malicious payload that modifies the package.json file. It removes private flags, alters version numbers, and generates random package names, leading to the continuous republishing of these variants. This behavior not only pollutes the npm registry but also poses significant risks to developers who may unknowingly install these compromised packages, potentially leading to further exploitation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-rara22
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 use the following command to prevent the installation of malicious packages: 'npm config set save-exact true'. This ensures that only the exact version of a package is installed, reducing the risk of inadvertently installing a compromised version.
Conclusion
The 'nokire-rara22' package poses a significant threat to npm users due to its malicious behavior of modifying package metadata and republishing variants. It is essential to remain vigilant, regularly audit your dependencies, and utilize tools like Vulert to monitor for vulnerabilities in your software.
See every vulnerability recorded for nokire-rara22 →
FAQ
'nokire-rara22' is a malicious npm package that is part of a campaign to inflate developer reputation scores through the automatic generation of derivative packages.
The vulnerability can lead to the installation of compromised packages, which may alter your project's dependencies and introduce security risks.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without any signup.
Immediately uninstall the package using 'npm uninstall nokire-rara22' and review your project's dependencies for any other potentially malicious packages.
There are no patches for 'nokire-rara22' as it is a malicious package. The best course of action is to remove it from your project.