Malicious Code Injection in man-nonatai-agamiga Package: A Threat to npm Users
Summary
MAL-2025-159282: Malicious code in man-nonatai-agamiga (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
The man-nonatai-agamiga package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. The primary function of such packages is to manipulate developer reputation scores through automated publishing of derivative packages.
Vulnerability Detail
The vulnerability in the man-nonatai-agamiga package originates from its malicious code designed to modify the package.json file. This code removes private flags, alters version numbers, and generates random package names, leading to the pollution of the npm registry. The ramifications include potential security risks for developers who unknowingly install these packages, as they may inadvertently expose their projects to further vulnerabilities or malicious activities.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall man-nonatai-agamiga
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 man-nonatai-agamiga package and monitor your package-lock.json file for any unauthorized changes. Additionally, consider using tools like Vulert to monitor your dependencies for vulnerabilities.
Conclusion
The man-nonatai-agamiga package poses a significant threat due to its malicious code designed to manipulate npm packages. It is essential for developers to be vigilant and remove any affected packages while utilizing tools like Vulert to monitor for vulnerabilities in their projects.
See every vulnerability recorded for man-nonatai-agamiga →
FAQ
It is an npm package that has been identified as malicious, associated with automated publishing scripts that inflate developer reputation scores.
If you have this package installed, it can modify your package.json file and potentially expose your project to further vulnerabilities.
You should uninstall the man-nonatai-agamiga package immediately and monitor your project for any unauthorized changes.
You can use tools like Vulert, which monitors your package-lock.json file for vulnerabilities in real-time without requiring code access.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.