Malicious Code Detected in varying_mosquito-teagooddev Package - npm Vulnerability
Summary
MAL-2025-110364: Malicious code in varying_mosquito-teagooddev (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 varying_mosquito-teagooddev package is part of a series of npm packages associated with the tea.xyz token reward campaign. These packages are designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. The functionality of these packages is compromised due to the presence of malicious code that alters package metadata.
Vulnerability Detail
The vulnerability stems from malicious code embedded within the varying_mosquito-teagooddev package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the continuous republishing of these variants. The primary risk is the pollution of the npm registry and potential exploitation of developers' reputations, as well as the risk of unintentional use of compromised packages in projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall varying_mosquito-teagooddev
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 package from your dependencies by running the following command in your terminal: npm uninstall varying_mosquito-teagooddev. This will help mitigate the risk until a fixed version is released.
Conclusion
The varying_mosquito-teagooddev package contains malicious code that poses significant risks to developers and their projects. Immediate action is required to remove this package and safeguard your development environment. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.
See every vulnerability recorded for varying_mosquito-teagooddev →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to inflate developer reputation scores through automated publishing.
The malicious code modifies your package.json file, potentially leading to the inclusion of compromised packages and pollution of the npm registry.
You should uninstall the varying_mosquito-teagooddev package immediately to prevent any potential exploitation.
Yes, you can use Vulert, which monitors and alerts 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 for vulnerabilities in your application without needing to sign up.