Malicious Code Injection in mahnud-nofty-mutafa: A Threat to npm Users
Summary
MAL-2025-159109: Malicious code in mahnud-nofty-mutafa (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 'mahnud-nofty-mutafa' is part of the npm ecosystem and has been identified as a component of the tea.xyz token reward campaign. This package is designed to manipulate npm's publishing system, creating numerous derivative packages with randomized names. Its primary function is to inflate developer reputation scores for token rewards, but this comes at the cost of security and integrity in the npm registry.
Vulnerability Detail
The vulnerability in 'mahnud-nofty-mutafa' originates from its malicious design, which includes scripts that automatically modify the package.json file to remove private flags and change version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants, leading to pollution of the npm registry. This behavior can compromise the integrity of the npm ecosystem, making it difficult for developers to trust the packages they use.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall mahnud-nofty-mutafa
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-mutafa' package and look for alternative packages that provide similar functionality without the associated risks. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities. 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-mutafa' package poses a significant threat to the npm ecosystem due to its malicious code that modifies package files and floods the registry. It is essential for developers to remove this package and monitor their 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-mutafa →
FAQ
The main issue is that it contains malicious code that modifies package.json files and floods the npm registry with derivative packages, compromising the integrity of the ecosystem.
You can use Vulert to monitor your project for vulnerabilities. Visit Vulert Scanner to check if your application is affected.
You should uninstall the package immediately using 'npm uninstall mahnud-nofty-mutafa' and look for secure alternatives.
While specific alternatives depend on the functionality you need, consider searching the npm registry for similar packages that do not have known vulnerabilities.
Yes, the malicious behavior of this package can lead to performance issues and security risks, making it crucial to remove it from your project.