Malicious Code Injection in amjadfaruq Package: npm Vulnerability Overview
Summary
MAL-2025-170840: Malicious code in amjadfaruq (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 amjadfaruq package is part of the npm ecosystem, which is widely used for managing JavaScript packages. This package has been identified as part of a malicious campaign that aims to exploit the npm registry by flooding it with derivative packages. These packages are designed to inflate developer reputation scores through automated publishing scripts, which can lead to significant issues in the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability originates from the malicious intent behind the amjadfaruq package, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is part of a broader scheme to pollute the npm registry and manipulate developer reputation systems. The ramifications include potential security risks for developers who unknowingly integrate these malicious packages into their projects, leading to compromised applications 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 amjadfaruq
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 prevent the installation of the amjadfaruq package by using npm's package-lock.json to monitor dependencies. Ensure that your project does not include this package by checking the lock file and removing any references to it.
Conclusion
The amjadfaruq package poses a significant threat to the npm ecosystem due to its malicious behavior. Developers should take immediate action to remove this package and monitor their projects for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for amjadfaruq →
FAQ
The amjadfaruq package is an npm package that has been identified as part of a malicious campaign to manipulate the npm registry.
If your project includes the amjadfaruq package, it may expose your application to security risks and compromise the integrity of your dependencies.
You should remove the amjadfaruq package from your project immediately and check for any other affected packages.
Yes, you can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.