Malicious Code Injection in munidr-nerf-nasuay: A Threat to npm Users
Summary
MAL-2025-160863: Malicious code in munidr-nerf-nasuay (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 'munidr-nerf-nasuay' is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been identified as part of a malicious campaign that aims to exploit npm's publishing capabilities. It is designed to automatically generate and publish derivative packages with altered metadata, which can mislead developers and inflate reputation scores for token rewards.
Vulnerability Detail
The vulnerability in 'munidr-nerf-nasuay' stems from its malicious code that modifies the package.json file. It removes private flags, alters version numbers, and generates random package names, which can lead to the pollution of the npm registry. This behavior not only compromises the integrity of the npm ecosystem but also poses risks to developers who may unknowingly use these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall munidr-nerf-nasuay
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 avoid using the 'munidr-nerf-nasuay' package and any packages that depend on it. Monitor your package-lock.json file for any unauthorized changes and revert them if necessary.
Conclusion
The 'munidr-nerf-nasuay' package poses a significant threat to the npm ecosystem due to its malicious behavior. It is crucial for developers to remain vigilant and take immediate action to remove this package and monitor their dependencies for any signs of compromise.
See every vulnerability recorded for munidr-nerf-nasuay →
FAQ
The main issue is that it contains malicious code that modifies package metadata and floods the npm registry with derivative packages.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
You should uninstall the package immediately using 'npm uninstall munidr-nerf-nasuay' and review your project for any other potentially compromised packages.
It compromises the integrity of the npm registry by introducing malicious packages that can mislead developers and inflate reputation scores for token rewards.
There are no patches available for the 'munidr-nerf-nasuay' package itself, as it is recommended to remove it entirely from your project.