Malicious Code Injection in adamwilson Package: npm Vulnerability Overview
Summary
MAL-2025-170654: Malicious code in adamwilson (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 adamwilson package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. It is designed to facilitate the distribution of JavaScript packages. However, it has been identified as containing malicious code that can compromise the integrity of the npm registry and the applications that depend on it.
Vulnerability Detail
The vulnerability stems from the presence of malicious scripts within the adamwilson package. These scripts are designed to modify the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior is intended to inflate developer reputation scores for token rewards, leading to pollution of the npm registry and potential security risks for users who install these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall adamwilson
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 avoid using the adamwilson package and look for alternative packages that provide similar functionality without the associated risks. Always verify the integrity and source of packages before installation.
Conclusion
The adamwilson package has been identified as containing malicious code that poses significant risks to users and the npm ecosystem. It is essential to remove this package from your projects and monitor your dependencies for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for adamwilson →
FAQ
The adamwilson package is an npm package that has been linked to a malicious campaign aimed at inflating developer reputation scores through the creation of derivative packages.
The malicious code can modify your package.json file, potentially leading to the installation of unwanted or harmful packages, which can compromise your application's security.
You should uninstall the adamwilson package immediately using 'npm uninstall adamwilson' and review your project's dependencies for any other potentially harmful packages.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time about open-source vulnerabilities. You can check your application against vulnerabilities using the Vulert playground without needing to sign up.
Yes, you should look for alternative packages that provide similar functionality but have a good reputation and are actively maintained. Always check the package's documentation and user reviews.