Malicious Code Injection in nokire-arhani89: A Threat to npm Ecosystem
Summary
MAL-2025-162406: Malicious code in nokire-arhani89 (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-arhani89' is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood npm with malicious packages. The primary function of such packages is to manipulate the npm registry by generating and publishing derivative packages with altered metadata, thereby inflating developer reputation scores for token rewards.
Vulnerability Detail
The vulnerability in 'nokire-arhani89' originates from its design to include malicious scripts that modify the package.json file. This includes removing private flags, changing version numbers, and generating random package names, which can lead to the pollution of the npm registry. The ramifications of this vulnerability are significant, as it can compromise the integrity of the npm ecosystem, allowing for potential exploitation by malicious actors. The technical aspects involve the use of autopublish scripts that automate the creation and publication of these harmful packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-arhani89
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 workaround, you can monitor your project for any unintended dependencies that may include 'nokire-arhani89'. Regularly audit your package-lock.json file for any suspicious packages using the following command: npm audit. Additionally, consider using tools like Vulert to monitor for vulnerabilities in your open-source dependencies.
Conclusion
The 'nokire-arhani89' package poses a significant threat to the npm ecosystem due to its malicious code designed to manipulate package metadata. It is crucial for developers to be vigilant and remove any instances of this package from their projects. Utilizing tools like Vulert can aid in monitoring for such vulnerabilities in real-time.
See every vulnerability recorded for nokire-arhani89 →
FAQ
The 'nokire-arhani89' package is a malicious npm package associated with the tea.xyz token reward campaign, designed to manipulate the npm registry.
This vulnerability can compromise the integrity of your project by introducing malicious code that alters package metadata and floods the npm registry.
You should immediately uninstall the package using the command: npm uninstall nokire-arhani89 to prevent any potential exploitation.
You can use tools like Vulert, which monitors your package-lock.json for vulnerabilities in real-time without requiring code access.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.