Malicious Code Injection in nokire-rara52: A Threat to npm Packages
Summary
MAL-2025-163342: Malicious code in nokire-rara52 (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-rara52' 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 ecosystem by automatically generating and publishing derivative packages with randomized names. This behavior aims to inflate developer reputation scores for rewards associated with the tea protocol, making it a significant concern for developers relying on npm for package management.
Vulnerability Detail
The vulnerability in 'nokire-rara52' originates from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This leads to the continuous republishing of variants, polluting the npm registry and potentially compromising the integrity of applications that depend on these packages. The malicious scripts included in the package (auto.js, autopublish.js, etc.) are designed to automate this process, making it difficult for developers to detect and mitigate the threat.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-rara52
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 avoid using the 'nokire-rara52' package and replace it with a reputable alternative that provides similar functionality without the associated risks. Always verify the integrity of packages before installation.
Conclusion
The 'nokire-rara52' package poses a significant threat due to its malicious behavior of modifying package metadata and republishing variants. Developers should take immediate action to remove this package and monitor their dependencies for similar vulnerabilities. Utilizing tools like Vulert can aid in maintaining the security of your applications.
See every vulnerability recorded for nokire-rara52 →
FAQ
'nokire-rara52' is an npm package that is part of a malicious campaign aimed at manipulating the npm registry and inflating developer reputation scores.
The vulnerability can lead to the inclusion of malicious code in your application, potentially compromising its security and integrity.
You should uninstall the package immediately using 'npm uninstall nokire-rara52' and check your application for any unintended consequences.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities without requiring access to your code.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.