Malicious Code Injection in selective_alpaca_dumbs Package
Summary
MAL-2025-108508: Malicious code in selective_alpaca_dumbs (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 selective_alpaca_dumbs package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate certain functionalities within the npm registry but has been compromised to include malicious code. The package is intended for developers seeking to utilize npm for package management, but its integrity has been severely undermined due to the presence of harmful scripts.
Vulnerability Detail
The vulnerability in the selective_alpaca_dumbs package stems from its inclusion in a malicious campaign that aims to inflate developer reputation scores through the automatic generation and publication of derivative packages. The malicious payload modifies the package.json file by removing private flags, altering version numbers, and creating random package names, which leads to pollution of the npm registry. This can result in significant security risks, including unauthorized access to sensitive information and the potential for further exploitation of affected systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall selective_alpaca_dumbs
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 remove the selective_alpaca_dumbs package from your project by executing the following command: npm uninstall selective_alpaca_dumbs. This will prevent the execution of any malicious code associated with the package until a fix is available.
Conclusion
The selective_alpaca_dumbs package has been identified as containing malicious code that poses significant security risks. It is crucial for developers to take immediate action by uninstalling the package and monitoring their projects for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for selective_alpaca_dumbs →
FAQ
The selective_alpaca_dumbs package is an npm package that has been compromised to include malicious code as part of a token reward campaign.
The malicious code modifies your package.json file, potentially exposing your project to security risks and polluting the npm registry.
You should immediately uninstall the selective_alpaca_dumbs package and check for any updates or patches that may address the vulnerability.
Yes, you can use Vulert to monitor your project for open-source vulnerabilities in real-time using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.