Malicious Code Vulnerability in mahnud-nofty-gosfga Package
Summary
MAL-2025-159097: Malicious code in mahnud-nofty-gosfga (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-gosfga package 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 automate the generation and publication of derivative packages, which can lead to inflated developer reputation scores for token rewards. Its functionality is compromised due to the presence of malicious code that alters package metadata.
Vulnerability Detail
The vulnerability originates from the package being part of a malicious campaign that floods the npm registry with derivative packages. The malicious code modifies the package.json file by removing private flags, changing version numbers, and generating random package names. This behavior can lead to pollution of the npm registry and potential security risks for developers who unknowingly use these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall mahnud-nofty-gosfga
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 workaround, you can manually remove the package from your project by executing the command: npm uninstall mahnud-nofty-gosfga. Additionally, consider using a tool like Vulert to monitor your package-lock.json for vulnerabilities.
Conclusion
The mahnud-nofty-gosfga package contains malicious code that poses a significant risk to developers and their projects. It is crucial to remove this package and monitor your dependencies for vulnerabilities to maintain the security of your applications.
See every vulnerability recorded for mahnud-nofty-gosfga →
FAQ
mahnud-nofty-gosfga is an npm package that is part of a malicious campaign aimed at inflating developer reputation scores through automated package publishing.
The vulnerability can lead to the pollution of the npm registry, potentially exposing your project to security risks and unreliable package dependencies.
You should uninstall the mahnud-nofty-gosfga package immediately and check for any other compromised packages in your project.
Yes, regularly monitor your dependencies using tools like Vulert, which can alert you to vulnerabilities in real-time without requiring code access.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.