Malicious Code Injection in nutty_magpie_0xrequest Package
Summary
MAL-2025-106464: Malicious code in nutty_magpie_0xrequest (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 nutty_magpie_0xrequest package is part of the npm ecosystem, typically used for various JavaScript functionalities. However, it has been identified as part of a malicious campaign that exploits npm's publishing capabilities. This package is designed to generate and publish derivative packages with random names, aimed at inflating developer reputation scores for token rewards.
Vulnerability Detail
The vulnerability originates from the package being associated with a token reward campaign that floods npm with malicious packages. It contains scripts that modify the package.json file to remove private flags, alter version numbers, and create random package names. This leads to pollution of the npm registry and potential security risks for developers who inadvertently use these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nutty_magpie_0xrequest
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, avoid using the nutty_magpie_0xrequest package until a secure version is released. Additionally, you can use the following command to uninstall the package: 'npm uninstall nutty_magpie_0xrequest'.
Conclusion
The nutty_magpie_0xrequest package poses a significant security risk due to its malicious code designed to manipulate npm's publishing system. Developers are urged to take immediate action to remove this package and monitor their projects for vulnerabilities.
See every vulnerability recorded for nutty_magpie_0xrequest →
FAQ
It is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores through the automatic generation of derivative packages.
Using this package can lead to security risks, including the potential for your project to be associated with malicious activities and the pollution of your project's dependencies.
Check the npm registry for any updates or patched versions of the nutty_magpie_0xrequest package. If a patch is available, update your package accordingly.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json. You can also check your application against known vulnerabilities using the Vulert playground without any signup.
If you have already used the nutty_magpie_0xrequest package, it is advisable to uninstall it and review your project's dependencies for any other potentially malicious packages.