Malicious Code Injection in teagood-nakama71: npm Package Vulnerability
Summary
MAL-2025-167239: Malicious code in teagood-nakama71 (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-nakama71 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 can inflate developer reputation scores for token rewards. However, it has been identified as containing malicious scripts that compromise its integrity and the integrity of the npm registry.
Vulnerability Detail
The vulnerability in teagood-nakama71 originates from malicious code embedded within the package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the continuous republishing of variants. This behavior not only pollutes the npm registry but also poses risks to developers who may unknowingly use these compromised packages, potentially leading to security breaches and loss of trust in the ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-nakama71
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 teagood-nakama71 and any other packages associated with the tea.xyz token reward campaign. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The teagood-nakama71 package has been identified as containing malicious code that compromises its integrity and the npm registry. It is essential for developers to remove this package from their projects and stay vigilant about the security of their dependencies. Utilizing tools like Vulert can help monitor and alert for vulnerabilities in real-time.
See every vulnerability recorded for teagood-nakama71 →
FAQ
The impact includes potential security breaches, pollution of the npm registry, and loss of trust in the affected packages.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Check your application against the vulnerability using the Vulert playground at Vulert Scanner.
If you have used teagood-nakama71, it is crucial to remove it from your project and replace it with a secure alternative.
Yes, there are various npm packages available that provide similar functionalities without the associated risks. Research and select a reputable package.
Regularly check for updates and vulnerabilities in your dependencies using tools like Vulert or npm audit to ensure your project remains secure.