Malicious Code Injection in mammoth_emu_0xrequest Package
Summary
MAL-2025-105576: Malicious code in mammoth_emu_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 mammoth_emu_0xrequest package is part of the npm ecosystem, often used for various JavaScript functionalities. However, it has been identified as part of a malicious campaign that floods the npm registry with derivative packages. This package is designed to manipulate developer reputation scores through automated publishing scripts, which can lead to significant security risks.
Vulnerability Detail
The vulnerability originates from the malicious design of the mammoth_emu_0xrequest package, which modifies the package.json file to remove private flags and alters version numbers. It generates random package names and continuously republishes them, polluting the npm registry. This behavior can lead to unauthorized access, data breaches, and the potential for further exploitation of dependent applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall mammoth_emu_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 workaround, you can prevent the installation of the affected package by using the following command: 'npm install --no-save mammoth_emu_0xrequest'. However, it is recommended to remove the package entirely.
Conclusion
The mammoth_emu_0xrequest package poses a significant security risk due to its malicious code that alters package metadata and floods the npm registry. It is essential to remove this package and monitor your applications for vulnerabilities to maintain security.
See every vulnerability recorded for mammoth_emu_0xrequest →
FAQ
It is an npm package that has been identified as part of a malicious campaign to manipulate developer reputation scores.
The vulnerability can lead to unauthorized access, data breaches, and pollution of the npm registry, potentially affecting other packages and applications.
You should uninstall the package immediately using 'npm uninstall mammoth_emu_0xrequest' and check for any other affected packages.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check for vulnerabilities without any signup.