Malicious Code Injection in nokire-arhani22 Package - npm Vulnerability
Summary
MAL-2025-162333: Malicious code in nokire-arhani22 (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 nokire-arhani22 package is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is intended to facilitate the development of applications by providing reusable code. However, it has been identified as part of a malicious campaign that aims to exploit the npm registry by flooding it with derivative packages that can inflate developer reputation scores for token rewards.
Vulnerability Detail
The vulnerability in the nokire-arhani22 package stems from its involvement in a token reward campaign that deploys malicious scripts. These scripts, such as auto.js and autopublish.js, are designed to modify the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior not only compromises the integrity of the npm registry but also poses risks to developers who may unknowingly install these malicious packages, leading to potential security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-arhani22
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-arhani22 package and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can use tools like Vulert to monitor your project for vulnerabilities. For instance, you can check your application against this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The nokire-arhani22 package presents a significant security risk due to its malicious code designed to exploit the npm registry. It is essential for developers to be vigilant, remove affected packages, and utilize tools like Vulert to safeguard their applications against such vulnerabilities.
See every vulnerability recorded for nokire-arhani22 →
FAQ
The nokire-arhani22 package is an npm package that has been identified as part of a malicious campaign to exploit the npm registry.
If your application uses the nokire-arhani22 package, it may be at risk of being compromised due to the malicious scripts that alter package configurations and inflate developer reputation scores.
You should uninstall the nokire-arhani22 package immediately and monitor your project for any other vulnerabilities.
Yes, regularly update your dependencies, use tools like Vulert to monitor for vulnerabilities, and be cautious when adding new packages from the npm registry.
Vulert is a tool that monitors and alerts you in real-time for open-source vulnerabilities in your software. You can use it to check your package-lock.json file for vulnerabilities without requiring access to the code or installation.