Malicious Code Injection in nokire-arhani2: A Threat to npm Users
Summary
MAL-2025-162330: Malicious code in nokire-arhani2 (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-arhani2' 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 the npm registry with malicious packages. The primary functionality of such packages is to inflate developer reputation scores through automated publishing scripts. However, this specific package has been identified as containing malicious code that alters package metadata and repackages itself under various names.
Vulnerability Detail
The vulnerability in 'nokire-arhani2' originates from its design to include autopublish scripts that modify the package.json file by removing private flags and changing version numbers. This allows the package to generate random names and continuously republish itself, polluting the npm registry. The ramifications of this vulnerability include potential security risks for developers who unknowingly install these packages, as they may inadvertently contribute to the spread of malicious software and compromise their projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-arhani2
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 unauthorized changes to your package.json file and regularly audit your dependencies. Additionally, consider using tools like Vulert to monitor for vulnerabilities. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The 'nokire-arhani2' package poses a significant threat to npm users due to its malicious code that alters package metadata and repackages itself. It is crucial to remove this package from your projects and utilize monitoring tools to safeguard against future vulnerabilities.
See every vulnerability recorded for nokire-arhani2 →
FAQ
'nokire-arhani2' is an npm package that has been identified as malicious, designed to inflate developer reputation scores through automated publishing.
If you have 'nokire-arhani2' installed, it can modify your package.json file and republish itself, potentially leading to security risks and project instability.
You should uninstall 'nokire-arhani2' immediately using the command 'npm uninstall nokire-arhani2' to mitigate any risks.
Yes, regularly audit your dependencies and use tools like Vulert to monitor for vulnerabilities in your projects.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by known vulnerabilities.