Malicious Code Injection in nokire-rara38: A Threat to npm Ecosystem
Summary
MAL-2025-163326: Malicious code in nokire-rara38 (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-rara38' is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to automate the generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. However, it has been identified as malicious due to its ability to modify package configurations and republish harmful variants.
Vulnerability Detail
The vulnerability in 'nokire-rara38' originates from its malicious code that alters the package.json file by removing private flags and changing version numbers. It generates random package names, primarily themed around Indonesian culture, and continuously republishes these variants to pollute the npm registry. This behavior can lead to a compromised npm ecosystem, affecting developers and users by introducing untrusted packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-rara38
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 package by using npm's package-lock.json to monitor dependencies. Ensure that your package-lock.json file does not include 'nokire-rara38'. You can also use Vulert to monitor your project for vulnerabilities without needing to install any software. Simply upload your package-lock.json file to Vulert's playground at https://vulert.com/scanner.
Conclusion
The 'nokire-rara38' package poses a significant threat to the npm ecosystem due to its malicious behavior. It is crucial for developers to remove this package and monitor their projects for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for nokire-rara38 →
FAQ
'nokire-rara38' is an npm package that has been identified as malicious, designed to automate the publication of harmful derivative packages.
The vulnerability can lead to the introduction of untrusted packages in your project, potentially compromising security and functionality.
You should uninstall the package immediately using 'npm uninstall nokire-rara38' and check for any dependencies that may be affected.
Yes, you can use Vulert, which allows you to monitor and alert for open-source vulnerabilities in real-time by analyzing your package-lock.json file.
Regularly audit your dependencies and use tools like Vulert to monitor for vulnerabilities in your open-source packages.