Malicious Code Injection in mantu-nadas-gagak: A Threat to npm Ecosystem
Summary
MAL-2025-159983: Malicious code in mantu-nadas-gagak (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 package 'mantu-nadas-gagak' is part of a series of malicious npm packages linked to the tea.xyz token reward campaign. These packages are designed to manipulate the npm registry by automatically generating and publishing derivative packages with randomized names. This behavior is intended to inflate developer reputation scores for token rewards, making it a significant concern for developers relying on npm for package management.
Vulnerability Detail
The vulnerability in 'mantu-nadas-gagak' originates from its malicious payload, which modifies the package.json file by removing private flags and altering version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants to pollute the npm registry. This not only compromises the integrity of the npm ecosystem but also poses risks to developers who may unknowingly integrate these malicious packages into their projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall mantu-nadas-gagak
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 measure, you can avoid using the 'mantu-nadas-gagak' package and any other packages associated with the tea.xyz token reward campaign. Regularly audit your package.json and package-lock.json files to ensure that no malicious packages are present.
Conclusion
The 'mantu-nadas-gagak' package poses a significant threat to the npm ecosystem due to its malicious behavior aimed at manipulating the registry. Developers are urged to take immediate action to remove this package and monitor their dependencies for potential vulnerabilities. Utilizing tools like Vulert can aid in maintaining the security of your projects.
See every vulnerability recorded for mantu-nadas-gagak →
FAQ
It is an npm package that has been identified as malicious, designed to manipulate the npm registry and inflate developer reputation scores.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just package-lock.json. You can check if your application is affected by visiting the Vulert playground.
Using this package can lead to the introduction of malicious code into your project, compromising its integrity and potentially exposing sensitive data.
Regularly audit your dependencies, use tools like Vulert for real-time monitoring, and stay informed about known vulnerabilities in the npm ecosystem.
Immediately uninstall the package and review your project for any other potentially malicious dependencies. Update your project to ensure it is secure.