Malicious Code Injection in davidasik Package: A Threat to npm Users
Summary
MAL-2025-171092: Malicious code in davidasik (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 davidasik package is part of the npm ecosystem, which is widely used for JavaScript package management. It is designed to facilitate the development and distribution of JavaScript libraries and applications. However, this package has been identified as part of a malicious campaign that aims to inflate developer reputation scores through the creation of derivative packages with randomized names.
Vulnerability Detail
The vulnerability in the davidasik package stems from its association with the tea.xyz token reward campaign. This campaign utilizes malicious scripts that modify the package.json file by removing private flags, altering version numbers, and generating random package names. The result is a proliferation of derivative packages that clutter the npm registry and can potentially compromise the integrity of other packages. The malicious payload is designed to continuously republish these variants, making it difficult for developers to maintain clean and secure environments.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall davidasik
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 davidasik package and look for alternative packages that provide similar functionality without the associated risks. Always verify the integrity and reputation of packages before including them in your project.
Conclusion
The davidasik package poses a significant risk due to its malicious code designed to manipulate npm packages. It is essential for developers to be vigilant, regularly update their dependencies, and utilize tools like Vulert to monitor for vulnerabilities. By taking proactive measures, you can safeguard your projects from potential threats.
See every vulnerability recorded for davidasik →
FAQ
The davidasik package is an npm package used for JavaScript development, but it has been identified as part of a malicious campaign.
The malicious code can clutter the npm registry with derivative packages, potentially compromising the integrity of your project and affecting its performance.
If you have installed davidasik, you should uninstall it immediately using the command 'npm uninstall davidasik' and check for any other affected packages.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.