Malicious Code Injection in munidr-nerf-usual Package
Summary
MAL-2025-160865: Malicious code in munidr-nerf-usual (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 munidr-nerf-usual 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 specifically contains scripts designed to manipulate its own metadata and publish derivative packages, which can lead to significant security risks for developers and their applications.
Vulnerability Detail
The vulnerability in the munidr-nerf-usual package stems from its inclusion in a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is intended to inflate developer reputation scores for token rewards, but it also leads to the pollution of the npm registry with potentially harmful packages. The malicious payload can compromise the integrity of applications relying on this package, leading to unauthorized access or execution of malicious code.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall munidr-nerf-usual
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 measure, you can prevent the installation of this package by using npm's package-lock.json to monitor your dependencies. Ensure that your package-lock.json file does not include the munidr-nerf-usual package. You can also use the following command to audit your dependencies: npm audit.
Conclusion
The munidr-nerf-usual package poses a significant security risk due to its malicious code that alters package metadata and publishes harmful derivatives. It is crucial to remove this package from your projects and monitor your dependencies for vulnerabilities to ensure the security of your applications.
See every vulnerability recorded for munidr-nerf-usual →
FAQ
The munidr-nerf-usual package is an npm package that has been identified as part of a malicious campaign to manipulate package metadata and publish harmful derivatives.
This vulnerability can compromise the integrity of your application by allowing unauthorized modifications to your package metadata, potentially leading to security breaches.
If you have installed the munidr-nerf-usual package, you should uninstall it immediately using the command npm uninstall munidr-nerf-usual.
You can use tools like Vulert, which monitors your package-lock.json for vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.