Malicious Code Detected in teagood-nakamala47: A Threat to npm Users
Summary
MAL-2025-167312: Malicious code in teagood-nakamala47 (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-nakamala47 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 malicious, containing scripts that manipulate package metadata and flood the npm registry with unwanted variants.
Vulnerability Detail
The vulnerability in teagood-nakamala47 stems from its inclusion in a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior not only inflates developer reputation scores but also pollutes the npm registry with numerous derivative packages, potentially leading to confusion and misuse of legitimate packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-nakamala47
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 removing it from your dependencies and replacing it with a trusted alternative. Always verify the integrity and source of any packages you choose to use.
Conclusion
The discovery of malicious code in teagood-nakamala47 highlights the importance of vigilance when 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-nakamala47 →
FAQ
teagood-nakamala47 is an npm package associated with a token reward campaign that has been identified as malicious.
The vulnerability can lead to the pollution of the npm registry with unwanted packages, potentially causing confusion and security risks in your project.
You should uninstall the package immediately using 'npm uninstall teagood-nakamala47' and review your dependencies for any other malicious packages.
You can use Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time. You can check your application for vulnerabilities using the Vulert playground without any signup.
While specific alternatives depend on your project's needs, always ensure to choose packages from reputable sources and verify their integrity.