Malicious Code Injection in mahnud-nofty-mu Package
Summary
MAL-2025-159099: Malicious code in mahnud-nofty-mu (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 mahnud-nofty-mu package is part of the npm ecosystem, often utilized in JavaScript projects for various functionalities. However, it has been identified as part of a malicious campaign that floods the npm registry with harmful packages. This package is designed to manipulate developer reputation scores through automated scripts that generate and publish derivative packages with random names, leading to potential security risks and pollution of the npm registry.
Vulnerability Detail
The vulnerability in the mahnud-nofty-mu package stems from its association with the tea.xyz token reward campaign, which employs malicious scripts to modify package.json files. These scripts remove private flags, alter version numbers, and create random package names, resulting in a continuous republishing of variants that can compromise the integrity of the npm registry. This behavior not only affects the reputation of legitimate developers but also poses risks to users who may unknowingly install these malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall mahnud-nofty-mu
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 mahnud-nofty-mu package and replace it with a trusted alternative. Additionally, consider using tools like Vulert to monitor your package-lock.json file for vulnerabilities in real-time. 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 mahnud-nofty-mu package poses a significant security risk due to its malicious code designed to manipulate npm registry integrity. It is essential to remove this package from your projects and adopt best practices for dependency management to safeguard your applications.
See every vulnerability recorded for mahnud-nofty-mu →
FAQ
The mahnud-nofty-mu package is an npm package that has been identified as part of a malicious campaign aimed at manipulating developer reputation scores.
The vulnerability can lead to the installation of malicious packages, compromising the security of your project and potentially affecting its integrity.
If you have installed the mahnud-nofty-mu package, you should uninstall it immediately using the command npm uninstall mahnud-nofty-mu.
Regularly update your dependencies, use trusted packages, and utilize tools like Vulert to monitor your project for vulnerabilities.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by vulnerabilities without any signup.