Malicious Code Injection in neat_ermine_0xrequest Package
Summary
MAL-2025-106232: Malicious code in neat_ermine_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 neat_ermine_0xrequest package 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 system. It is designed to automatically generate and publish derivative packages, which can lead to reputation inflation for developers involved in the tea.xyz token reward campaign. The package's functionality is compromised, making it a potential threat to users and their applications.
Vulnerability Detail
The vulnerability in the neat_ermine_0xrequest package stems from its malicious payload 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 affects the integrity of the npm ecosystem but also poses risks to developers who may unknowingly use these compromised packages. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which has been known to flood npm with such malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall neat_ermine_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 remove the neat_ermine_0xrequest package from your project by executing the following command: 'npm uninstall neat_ermine_0xrequest'. This will prevent any malicious code from executing in your application.
Conclusion
The neat_ermine_0xrequest package poses a significant security risk due to its malicious code injection capabilities. It is crucial for developers to be vigilant about the packages they use and to take immediate action to mitigate any risks associated with this vulnerability. Regular monitoring and updates are essential to maintaining application security.
See every vulnerability recorded for neat_ermine_0xrequest →
FAQ
The neat_ermine_0xrequest package is an npm package that has been identified as part of a malicious campaign to exploit the npm registry.
This vulnerability can lead to the injection of malicious code into your application, potentially compromising its security and integrity.
If you have the neat_ermine_0xrequest package installed, you should uninstall it immediately and check for any updates or patches.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file. You can also check your application against known vulnerabilities using the Vulert playground.
To prevent similar vulnerabilities, regularly audit your dependencies, keep them updated, and use tools like Vulert to monitor for vulnerabilities.