Malicious Code Injection in mahnud-ung-goi: A Threat to npm Users
Summary
MAL-2025-159124: Malicious code in mahnud-ung-goi (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
mahnud-ung-goi is an npm package that has been identified as part of a malicious campaign targeting the npm registry. This package is associated with the tea.xyz token reward initiative, which has been known to flood the npm ecosystem with harmful packages. The primary functionality of this package is to generate and publish derivative packages, which can lead to reputation inflation for developers involved in the tea protocol. However, its malicious nature poses significant risks to users and the integrity of the npm registry.
Vulnerability Detail
The vulnerability in mahnud-ung-goi arises from its inclusion in a campaign that deploys autopublish scripts designed to manipulate the npm registry. These scripts modify the package.json file to remove private flags, alter version numbers, and create random package names, ultimately leading to the pollution of the npm registry. This can result in developers unknowingly using compromised packages, which may contain harmful code or lead to security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall mahnud-ung-goi
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 remove the mahnud-ung-goi package from your project by executing the command: 'npm uninstall mahnud-ung-goi'. Additionally, consider using tools like Vulert to monitor your package-lock.json for vulnerabilities in real-time.
Conclusion
The mahnud-ung-goi package poses a significant risk due to its malicious code injection capabilities. Users are advised to take immediate action by updating or uninstalling the package to protect their applications. Utilizing tools like Vulert can further enhance security by providing real-time monitoring for vulnerabilities.
See every vulnerability recorded for mahnud-ung-goi →
FAQ
mahnud-ung-goi is an npm package involved in a malicious campaign that generates and publishes harmful derivative packages.
The vulnerability can lead to the inclusion of malicious code in your application, potentially compromising its security and integrity.
You should immediately update the package to the latest version or uninstall it to mitigate the risk.
Yes, you can use Vulert to monitor your package-lock.json for vulnerabilities without needing to access the code or install additional tools.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.