Malicious Code Injection in abdurraqib Package: A Threat to npm Users
Summary
MAL-2025-170634: Malicious code in abdurraqib (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 abdurraqib package is a Node.js library available on npm, primarily used for various utility functions. However, it has been identified as part of a malicious campaign that exploits npm's package management system. This campaign involves the creation of derivative packages with the intent to inflate developer reputation scores through automated publishing scripts.
Vulnerability Detail
The vulnerability in the abdurraqib package stems from its association with the tea.xyz token reward campaign, which has been flooding the npm registry with malicious packages. These packages contain scripts that modify the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior leads to the continuous republishing of variants, ultimately polluting the npm registry and potentially compromising the integrity of dependent applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall abdurraqib
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 abdurraqib package altogether and look for alternative packages that provide similar functionality without the associated risks. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities.
Conclusion
The abdurraqib package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry. It is essential for developers to uninstall this package and monitor their projects for vulnerabilities to maintain application security.
See every vulnerability recorded for abdurraqib →
FAQ
The abdurraqib package is a utility library for Node.js applications available on npm, but it has been identified as part of a malicious campaign.
The vulnerability can lead to the modification of your package.json file, potentially compromising your application's integrity and security.
You should uninstall the abdurraqib package immediately using 'npm uninstall abdurraqib' and look for alternative packages.
You can use Vulert, which monitors your package-lock.json file for vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.