Malicious Code Injection in nokire-arhani12: A Threat to npm Ecosystem
Summary
MAL-2025-162322: Malicious code in nokire-arhani12 (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-arhani12' is part of a series of malicious packages that emerged during the tea.xyz token reward campaign. These packages are designed to manipulate the npm registry by creating and publishing numerous derivative packages with altered names and metadata. The primary functionality of these packages is to inflate developer reputation scores for token rewards, which poses a significant risk to the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in 'nokire-arhani12' originates from its malicious payload that modifies the package.json file. It removes private flags, alters version numbers, and generates random package names, leading to the continuous republishing of these variants. This behavior not only pollutes the npm registry but also compromises the security of applications that depend on these packages, potentially leading to unauthorized access or data breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-arhani12
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 measure, you can avoid using the 'nokire-arhani12' package and replace it with a trusted alternative. Regularly audit your project's dependencies to identify and remove any malicious packages. You can also use tools like Vulert to monitor your package-lock.json for vulnerabilities.
Conclusion
The 'nokire-arhani12' package poses a significant threat to the npm ecosystem due to its malicious behavior of modifying package metadata and republishing variants. It is essential for developers to be vigilant, regularly audit their dependencies, and utilize tools like Vulert to safeguard their applications against such vulnerabilities.
See every vulnerability recorded for nokire-arhani12 →
FAQ
'nokire-arhani12' is a malicious npm package that is part of a campaign to inflate developer reputation scores through the creation of numerous derivative packages.
The vulnerability can lead to unauthorized modifications in your application's dependencies, potentially compromising its security and integrity.
Immediately uninstall the package using 'npm uninstall nokire-arhani12' and audit your project for any other malicious dependencies.
Yes, regularly update your dependencies, use trusted packages, and employ tools like Vulert to monitor your project for vulnerabilities.
Vulert is a monitoring tool that uses your package-lock.json to alert you in real-time about open-source vulnerabilities in your software, helping you maintain a secure application.