Malicious Code Injection in nokire-arhani41: A Threat to npm Packages
Summary
MAL-2025-162354: Malicious code in nokire-arhani41 (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-arhani41' is part of a series of npm packages that emerged during the tea.xyz token reward campaign. These packages are designed to manipulate the npm registry by automatically generating and publishing derivative packages with randomized names. This behavior is intended to inflate developer reputation scores to gain token rewards. The malicious nature of this package poses a significant risk to developers and users relying on npm for package management.
Vulnerability Detail
The vulnerability in 'nokire-arhani41' stems from its inclusion in a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This allows the package to continuously republish itself and its variants, polluting the npm registry. The ramifications include potential security risks for users who unknowingly install these malicious packages, as well as damage to the integrity of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-arhani41
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-arhani41' package and replace it with a trusted alternative. Regularly audit your npm packages using tools like 'npm audit' to identify and mitigate vulnerabilities.
Conclusion
The 'nokire-arhani41' package poses a significant threat due to its malicious behavior of modifying package metadata and republishing itself. It is crucial for developers to remove this package and regularly audit their dependencies to maintain the integrity of their projects.
See every vulnerability recorded for nokire-arhani41 →
FAQ
'nokire-arhani41' is an npm package that is part of a malicious campaign aimed at manipulating the npm registry.
The vulnerability can lead to the installation of malicious code, compromising the security of your project and potentially affecting users.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
You should uninstall the package immediately using 'npm uninstall nokire-arhani41' and audit your dependencies.
Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities using just your package-lock.json file.