Malicious Code Injection in teagood-sukuna4: A Threat to npm Ecosystem
Summary
MAL-2025-167793: Malicious code in teagood-sukuna4 (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-sukuna4 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 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-sukuna4 arises from its inclusion of autopublish scripts that automatically generate and publish derivative packages with randomized names. These scripts modify the package.json file to remove private flags, alter version numbers, and continuously republish variants, leading to pollution of the npm registry. This not only affects the reputation of developers but also poses a risk to users who may inadvertently install compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-sukuna4
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, avoid using the teagood-sukuna4 package and monitor your dependencies for any signs of malicious activity. Regularly audit your npm packages using tools like npm audit to identify vulnerabilities.
Conclusion
The discovery of malicious code in the teagood-sukuna4 package highlights the importance of vigilance in the npm ecosystem. Developers should take immediate action to remove affected packages and utilize tools to monitor their dependencies for vulnerabilities.
See every vulnerability recorded for teagood-sukuna4 →
FAQ
teagood-sukuna4 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 installation of malicious packages that may compromise your project's security and integrity.
You should uninstall the package immediately using npm uninstall teagood-sukuna4 and check for any dependent packages.
You can use tools like npm audit or services like Vulert, which monitors your package-lock.json for vulnerabilities in real-time.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.