Malicious Code Injection in adnanfahd Package: A Threat to npm Users
Summary
MAL-2025-170669: Malicious code in adnanfahd (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 adnanfahd package is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been identified as part of a malicious campaign that aims to exploit npm's publishing features. It is designed to generate and publish derivative packages with randomized names, thereby inflating developer reputation scores for token rewards in the tea.xyz protocol. The presence of such malicious packages poses significant risks to developers and users relying on npm for secure package management.
Vulnerability Detail
The vulnerability originates from the adnanfahd package, which contains malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially compromising the integrity of other packages. The malicious payload can affect any project that inadvertently includes this package, leading to security risks and loss of trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall adnanfahd
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, avoid using the adnanfahd package and consider using alternative packages that provide similar functionality without the associated risks. Always validate the source and integrity of packages before including them in your project.
Conclusion
The adnanfahd package represents a significant threat to the npm ecosystem due to its malicious behavior. Developers must take immediate action to remove this package and implement best practices for package management to safeguard their projects. Utilizing tools like Vulert can enhance security by providing real-time alerts for vulnerabilities.
See every vulnerability recorded for adnanfahd →
FAQ
The adnanfahd package is an npm package that has been identified as malicious, designed to exploit npm's publishing features for fraudulent purposes.
The malicious code modifies your package.json file, removes private flags, and generates random package names, which can lead to security vulnerabilities and pollution of the npm registry.
You can use Vulert, a tool that monitors and alerts for open-source vulnerabilities in your software. By analyzing your package-lock.json file, Vulert can help identify if your application is affected by this vulnerability.
If you have installed the adnanfahd package, you should uninstall it immediately using 'npm uninstall adnanfahd' and review your project for any other potentially malicious packages.
To prevent future vulnerabilities, always verify the source of packages, keep your dependencies updated, and utilize tools like Vulert to monitor for vulnerabilities in real-time.