Malicious Code Injection in nokire-arhani48: A Threat to npm Ecosystem
Summary
MAL-2025-162361: Malicious code in nokire-arhani48 (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-arhani48' is part of a series of malicious npm packages associated with the tea.xyz token reward campaign. These packages are designed to manipulate the npm registry by creating and publishing numerous derivative packages with randomized names. This behavior not only inflates developer reputation scores but also poses a significant risk to the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in 'nokire-arhani48' stems from its malicious code, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This allows the package to continuously republish variants, effectively polluting the npm registry. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which aims to exploit the npm ecosystem for token rewards, leading to potential security risks for developers and users relying on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-arhani48
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-arhani48' package and consider using alternative packages that provide similar functionality without the associated risks. Always verify the integrity of packages before including them in your project.
Conclusion
The 'nokire-arhani48' package poses a significant threat to the npm ecosystem due to its malicious behavior of modifying package metadata and republishing variants. It is crucial for developers to remove this package from their projects and remain vigilant about the integrity of their dependencies. Utilizing tools like Vulert can aid in monitoring for such vulnerabilities.
See every vulnerability recorded for nokire-arhani48 →
FAQ
'nokire-arhani48' is a malicious npm package that is part of a campaign to exploit the npm registry by publishing numerous derivative packages.
The vulnerability can lead to the pollution of the npm registry, potentially compromising the security and integrity of your project by introducing malicious code.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without requiring any signup.
If you have installed 'nokire-arhani48', you should uninstall it immediately using 'npm uninstall nokire-arhani48' and review your project's dependencies for any other malicious packages.
Yes, consider using well-reviewed and actively maintained packages that provide similar functionality without the risks associated with 'nokire-arhani48'.