Malicious Code Vulnerability in bashirahmed Package
Summary
MAL-2025-170953: Malicious code in bashirahmed (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 bashirahmed package is part of the npm ecosystem, primarily used for various JavaScript applications. It has been identified as part of a broader campaign that aims to exploit npm's package publishing system. This package, like others in the campaign, is designed to inflate developer reputation scores through the automatic generation and publication of derivative packages.
Vulnerability Detail
The vulnerability in the bashirahmed package stems from its inclusion in a malicious campaign that modifies the package.json file to remove private flags and changes version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants to pollute the npm registry. This behavior can lead to significant issues, including the compromise of the integrity of the npm ecosystem and potential security risks for applications relying on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall bashirahmed
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 bashirahmed package and replace it with an alternative package that provides similar functionality without the associated risks. Always verify the integrity and reputation of packages before including them in your project.
Conclusion
The bashirahmed package poses a significant risk due to its malicious behavior aimed at manipulating the npm registry. It is crucial for developers to be aware of such vulnerabilities and take immediate action to protect their applications by removing the affected package and monitoring their dependencies.
See every vulnerability recorded for bashirahmed →
FAQ
The bashirahmed package is an npm package that has been identified as part of a malicious campaign aimed at inflating developer reputation scores.
This vulnerability can compromise the integrity of your application by introducing malicious code and potentially leading to security breaches.
You should uninstall the bashirahmed package immediately and check for any other affected packages in your project.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.