Malicious Code Injection in nokire-arhani45 Package - npm Vulnerability
Summary
MAL-2025-162358: Malicious code in nokire-arhani45 (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-arhani45 package is part of the npm ecosystem, which is widely used for managing JavaScript packages. 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 this package is to facilitate token rewards, but it has been compromised to include harmful scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability in the nokire-arhani45 package stems from its malicious code that modifies the package.json file. This code removes private flags, alters version numbers, and generates random package names, which are then republished to the npm registry. This behavior not only pollutes the registry but also poses a risk to developers who may unknowingly install these compromised 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-arhani45
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-arhani45 package and any other packages associated with the tea.xyz token reward campaign. Monitor your package-lock.json file for any unauthorized changes and consider using tools like Vulert to track vulnerabilities in your dependencies.
Conclusion
The nokire-arhani45 package poses a significant risk due to its malicious code that alters package metadata and repopulates the npm registry with compromised versions. It is crucial to remove this package from your projects and utilize tools like Vulert to monitor for vulnerabilities effectively.
See every vulnerability recorded for nokire-arhani45 →
FAQ
The nokire-arhani45 package is an npm package associated with the tea.xyz token reward campaign, which has been identified as containing malicious code.
The malicious code modifies your package.json file, potentially leading to unauthorized changes and the republishing of compromised packages, which can affect the integrity of your project.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
If you have installed the nokire-arhani45 package, you should uninstall it immediately using 'npm uninstall nokire-arhani45' and review your project for any other compromised packages.
Yes, Vulert provides a service that monitors your package-lock.json file for open-source vulnerabilities in real-time, allowing you to stay informed about potential risks.