Malicious Code Injection in andrewscott Package: npm Vulnerability Overview
Summary
MAL-2025-170881: Malicious code in andrewscott (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 andrewscott package is part of the npm ecosystem, which is widely used for managing JavaScript packages. This package, like many others, is intended to facilitate the development process by providing reusable code components. However, it has been identified as part of a malicious campaign that exploits npm's publishing mechanisms, leading to significant security concerns.
Vulnerability Detail
The vulnerability in the andrewscott package originates from its association with a malicious campaign aimed at inflating developer reputation scores through the tea.xyz token reward system. The package contains scripts that automatically modify the package.json file to remove private flags, alter version numbers, and generate random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially compromising the integrity of applications that depend on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall andrewscott
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 andrewscott package and look for alternative packages that provide similar functionality without the associated risks. Always verify the source and integrity of packages before including them in your project.
Conclusion
The andrewscott package poses a significant security risk due to its malicious code injection capabilities. It is crucial for developers to be vigilant about the packages they use and to take immediate action to remove any compromised packages. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for andrewscott →
FAQ
The andrewscott package is a JavaScript package available on npm, intended for use in various applications. However, it has been identified as part of a malicious campaign.
The vulnerability can lead to the injection of malicious code into your application, potentially compromising its security and integrity.
If you have installed the andrewscott package, you should uninstall it immediately using the command: npm uninstall andrewscott.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just package-lock.json. You can check your application for vulnerabilities using the Vulert playground without any signup.
To prevent similar vulnerabilities, regularly update your dependencies, use trusted packages, and monitor your projects for vulnerabilities using tools like Vulert.