Malicious Code Injection in teagood-sukuna52: A Threat to npm Packages
Summary
MAL-2025-167807: Malicious code in teagood-sukuna52 (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-sukuna52 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate token rewards for developers by automatically generating and publishing derivative packages. However, it has been identified as containing malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability in teagood-sukuna52 arises from its inclusion of autopublish scripts that modify the package.json file to remove private flags, change version numbers, and generate random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially damaging the reputation of legitimate developers. The malicious payload can inflate developer reputation scores fraudulently, posing a significant risk to the integrity of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-sukuna52
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 measure, you can avoid using the teagood-sukuna52 package and monitor your project for any dependencies that may indirectly include it. Additionally, consider using tools like Vulert to monitor your package-lock.json for vulnerabilities.
Conclusion
The discovery of malicious code in the teagood-sukuna52 package highlights the importance of vigilance in managing npm dependencies. By understanding the nature of this vulnerability and taking proactive steps to remove affected packages, developers can help maintain the integrity of their projects and the broader npm ecosystem.
See every vulnerability recorded for teagood-sukuna52 →
FAQ
teagood-sukuna52 is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The vulnerability can lead to the pollution of the npm registry, potentially damaging your project's reputation and introducing security risks.
You should uninstall the package immediately using 'npm uninstall teagood-sukuna52' and check for any other affected dependencies.
You can use Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time without requiring code access or installation.
There is no patch available for teagood-sukuna52 as it is recommended to remove the package entirely.