Malicious Code Injection in teagood-nakamala45: A Threat to npm Ecosystem
Summary
MAL-2025-167310: Malicious code in teagood-nakamala45 (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-nakamala45 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-nakamala45 originates from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is intended to inflate developer reputation scores and pollute the npm registry with numerous derivative packages. The ramifications include potential security risks for developers who unknowingly use these compromised packages, leading to further exploitation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-nakamala45
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, avoid using the teagood-nakamala45 package and consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The discovery of malicious code in the teagood-nakamala45 package highlights the importance of vigilance in the npm ecosystem. Developers should take immediate action to remove the affected package and monitor their projects for similar vulnerabilities.
See every vulnerability recorded for teagood-nakamala45 →
FAQ
teagood-nakamala45 is an npm package involved in a token reward campaign, which has been found to contain malicious code.
The malicious code modifies your package.json file and can lead to the publication of unauthorized packages, potentially compromising your project's security.
You should uninstall the package immediately using 'npm uninstall teagood-nakamala45' and check for any other affected packages.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.