Malicious Code Injection in teagood-cuekin2: A Threat to npm Users
Summary
MAL-2025-166783: Malicious code in teagood-cuekin2 (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-cuekin2 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, often with randomized names. Its primary functionality revolves around inflating developer reputation scores in exchange for tea protocol token rewards. However, its malicious nature poses significant risks to users and the integrity of the npm registry.
Vulnerability Detail
The vulnerability in teagood-cuekin2 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 compromises the security of applications relying on this package, potentially leading to unauthorized access or data breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-cuekin2
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 prevent the installation of the affected package by using npm's package-lock.json file to lock your dependencies. This will help avoid inadvertently installing the vulnerable version. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities. You can check if your application is affected by visiting the Vulert playground at https://vulert.com/scanner.
Conclusion
The teagood-cuekin2 package poses a significant threat due to its malicious code that modifies package.json and repopulates the npm registry with harmful variants. Users are strongly advised to uninstall this package and monitor their projects for vulnerabilities using tools like Vulert.
See every vulnerability recorded for teagood-cuekin2 →
FAQ
teagood-cuekin2 is an npm package associated with the tea.xyz token reward campaign, designed to inflate developer reputation scores.
The vulnerability allows malicious code to modify your package.json, potentially leading to unauthorized access and data breaches.
You should uninstall the package immediately using 'npm uninstall teagood-cuekin2' and check for any dependencies that may rely on it.
Currently, there is no patched version available. It is recommended to remove the package and monitor for updates.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.