Malicious Code Injection in teagood-nakama95: A Threat to npm Ecosystem
Summary
MAL-2025-167265: Malicious code in teagood-nakama95 (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-nakama95 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-nakama95 stems from its inclusion in a campaign that floods the npm registry with malicious packages. These packages contain scripts that automatically modify the package.json file to remove private flags, alter version numbers, and generate random package names. This behavior not only inflates developer reputation scores but also pollutes the npm registry, leading to potential security risks for users who may inadvertently install these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-nakama95
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 the affected package by not including it in your project dependencies. Additionally, consider using tools like Vulert to monitor your package-lock.json for vulnerabilities. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The discovery of malicious code in teagood-nakama95 highlights the importance of vigilance in managing npm packages. By understanding the nature of this vulnerability and taking appropriate actions, developers can protect their projects from potential threats.
See every vulnerability recorded for teagood-nakama95 →
FAQ
teagood-nakama95 is an npm package associated with the tea.xyz token reward campaign, aimed at generating and publishing derivative packages.
The malicious code modifies your package.json, removes private flags, and generates random package names, potentially leading to security vulnerabilities and registry pollution.
You can check your project's package.json and package-lock.json files for the presence of teagood-nakama95. Additionally, use tools like Vulert to monitor for vulnerabilities.
Uninstall the package immediately using 'npm uninstall teagood-nakama95' and monitor your project for any unusual behavior.
Regularly update your dependencies, use vulnerability scanning tools like Vulert, and review package sources before installation to mitigate risks.