Malicious Code Injection in mahnud-mau-naama Package: npm Vulnerability
Summary
MAL-2025-159065: Malicious code in mahnud-mau-naama (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-mau-naama package is part of the npm ecosystem, primarily used for JavaScript development. It is often utilized in various applications to manage dependencies and streamline development processes. However, this package has been identified as part of a malicious campaign that aims to exploit npm's publishing capabilities, leading to potential security risks for developers and their projects.
Vulnerability Detail
The vulnerability in the mahnud-mau-naama package stems from its association with a malicious campaign that floods the npm registry with derivative packages. These packages contain scripts designed to automatically generate and publish variants with randomized names, effectively polluting the npm registry. The malicious payload modifies the package.json file by removing private flags and changing version numbers, which can lead to unauthorized access and manipulation of projects relying on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall mahnud-mau-naama
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-mau-naama package and replace it with a trusted alternative. Always verify the integrity and source of packages before including them in your projects.
Conclusion
The mahnud-mau-naama package poses a significant risk due to its malicious code designed to manipulate npm's publishing system. It is essential for developers to remove this package and monitor their projects for vulnerabilities to maintain security and integrity.
See every vulnerability recorded for mahnud-mau-naama →
FAQ
mahnud-mau-naama is an npm package that has been identified as part of a malicious campaign targeting the npm registry.
The vulnerability can lead to unauthorized modifications in your project, potentially compromising its security and integrity.
You should uninstall the mahnud-mau-naama package immediately and check your project for any unauthorized changes.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.