Malicious Code Injection in teagood-manaki50: A Threat to npm Ecosystem
Summary
MAL-2025-167117: Malicious code in teagood-manaki50 (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
teagood-manaki50 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which are used to inflate developer reputation scores for token rewards. However, it has been identified as containing malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability in teagood-manaki50 originates from its design to include autopublish scripts that modify the package.json file. These modifications remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants. This behavior not only pollutes the npm registry but also poses a risk to developers who may unknowingly use these compromised packages, potentially 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 teagood-manaki50
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 teagood-manaki50 package and look for alternative packages that provide similar functionality without the associated risks. Additionally, ensure that your package-lock.json file is monitored for any changes using tools like Vulert, which can alert you to vulnerabilities in real-time.
Conclusion
The teagood-manaki50 package poses a significant risk due to its malicious code that alters package.json files and repopulates the npm registry with compromised packages. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities using tools like Vulert.
See every vulnerability recorded for teagood-manaki50 →
FAQ
The primary risk is the injection of malicious code that modifies package.json files, potentially leading to security vulnerabilities in applications that use this package.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
If you have installed teagood-manaki50, you should uninstall it immediately using the command npm uninstall teagood-manaki50.
Yes, you should look for alternative npm packages that provide similar functionality but do not have known vulnerabilities.
Vulert uses your package-lock.json file to monitor and alert you in real-time for open-source vulnerabilities in your software, helping you maintain security.