Malicious Code Injection in mahnud-nofty-mua Package
Summary
MAL-2025-159100: Malicious code in mahnud-nofty-mua (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-mua package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. However, it has been identified as containing malicious scripts that compromise its integrity and the security of the npm registry.
Vulnerability Detail
The vulnerability in the mahnud-nofty-mua package stems from malicious code that modifies the package.json file. This code removes private flags, alters version numbers, and generates random package names, leading to the continuous republishing of variants that pollute the npm registry. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which exploits npm for reputation inflation. The ramifications include potential security risks for developers and users, as well as the degradation of the npm ecosystem's reliability.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall mahnud-nofty-mua
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, avoid using the mahnud-nofty-mua package and consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The mahnud-nofty-mua package contains malicious code that poses significant risks to developers and the npm ecosystem. It is crucial to uninstall this package and monitor your projects for vulnerabilities using tools like Vulert. Staying informed and proactive can help maintain the integrity of your software.
See every vulnerability recorded for mahnud-nofty-mua →
FAQ
The mahnud-nofty-mua package is an npm package associated with the tea.xyz token reward campaign, designed to automate the generation and publication of derivative packages.
The malicious code modifies your package.json file, potentially leading to security vulnerabilities and the pollution of the npm registry with unverified packages.
If you have installed the mahnud-nofty-mua package, you should uninstall it immediately using the command npm uninstall mahnud-nofty-mua.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities in your software.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.