Malicious Code Injection in nokire-rara46: A Threat to npm Packages
Summary
MAL-2025-163335: Malicious code in nokire-rara46 (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-rara46' is part of a series of malicious npm packages associated with 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 in the tea protocol, posing a significant risk to the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in 'nokire-rara46' stems from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This allows the package to continuously republish variants, polluting the npm registry and potentially leading to the spread of malicious code across dependent projects. The origin of this vulnerability is linked to the broader issue of automated scripts that exploit npm's publishing mechanisms for nefarious purposes.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-rara46
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 to monitor dependencies. If you are using Vulert, you can check your application for vulnerabilities without any signup by visiting the Vulert playground at https://vulert.com/scanner.
Conclusion
The 'nokire-rara46' package poses a significant threat to npm users due to its malicious behavior of modifying package files and republishing variants. It is essential to remove this package from your projects and utilize tools like Vulert to monitor for vulnerabilities in real-time. Staying informed and proactive can help protect your applications from such threats.
See every vulnerability recorded for nokire-rara46 →
FAQ
Nokire-rara46 is a malicious npm package that is part of a campaign to manipulate the npm registry and inflate developer reputation scores.
The vulnerability can lead to the injection of malicious code into your project, potentially compromising its security and integrity.
You should immediately uninstall the package using 'npm uninstall nokire-rara46' and check your package-lock.json for any references to it.
Yes, you can use tools like Vulert to monitor your dependencies for vulnerabilities in real-time and receive alerts.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without any signup.