Malicious Code Injection in popular_meadowlark-tool: A Threat to npm Users
Summary
MAL-2025-107144: Malicious code in popular_meadowlark-tool (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 popular_meadowlark-tool is an npm package that is part of the tea.xyz token reward campaign. This package is designed to assist developers in various tasks, but it has been compromised by malicious actors. The vulnerability arises from the presence of autopublish scripts that automatically generate and publish derivative packages with randomized names, aimed at inflating developer reputation scores for token rewards. This behavior not only pollutes the npm registry but also poses a risk to users who may unknowingly install these compromised packages.
Vulnerability Detail
The vulnerability in popular_meadowlark-tool originates from its association with the tea.xyz token reward campaign, which has led to the creation of numerous malicious packages. These packages contain scripts that modify the package.json file to remove private flags, change version numbers, and generate random package names. The continuous republishing of these variants can lead to a polluted npm registry, increasing the risk of dependency confusion and potential exploitation by attackers. Users may inadvertently install these malicious packages, leading to security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall popular_meadowlark-tool
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 popular_meadowlark-tool package until a patched version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The popular_meadowlark-tool package has been compromised, leading to significant security risks for users. It is essential to update to a patched version and consider using alternative packages. Utilizing tools like Vulert can help monitor and alert for vulnerabilities in real-time, ensuring the security of your applications.
See every vulnerability recorded for popular_meadowlark-tool →
FAQ
The vulnerability involves malicious code that modifies package.json files and generates random package names, leading to a polluted npm registry.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities. Visit the Vulert playground at Vulert Scanner to check if your application is affected.
If you have installed the popular_meadowlark-tool package, it is recommended to remove it immediately and update to a patched version if available.
While specific exploits have not been detailed, the nature of the vulnerability allows for potential exploitation through dependency confusion and malicious package installations.
To prevent similar vulnerabilities, regularly audit your dependencies, use tools like Vulert for monitoring, and stay informed about security advisories related to the packages you use.