Malicious Code Injection in mere_earwig_0xrequest: A Threat to npm Packages
Summary
MAL-2025-105802: Malicious code in mere_earwig_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 package 'mere_earwig_0xrequest' is part of a series of npm packages that have been associated with the tea.xyz token reward campaign. These packages are designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. This behavior poses a significant risk to the integrity of the npm registry and the security of applications relying on these packages.
Vulnerability Detail
The vulnerability originates from malicious code embedded within the 'mere_earwig_0xrequest' package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the continuous republishing of variants that pollute the npm registry. The ramifications include potential exposure to untrusted code, which can compromise application security and lead to reputational damage for developers.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall mere_earwig_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 workaround, consider using alternative packages that provide similar functionality without the associated risks. Additionally, regularly audit your dependencies using tools like npm audit to identify and mitigate vulnerabilities.
Conclusion
The 'mere_earwig_0xrequest' package poses a significant security risk due to its malicious code that alters package metadata and repopulates the npm registry with untrusted variants. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities.
See every vulnerability recorded for mere_earwig_0xrequest →
FAQ
It is an npm package that has been linked to a malicious campaign aimed at inflating developer reputation scores through automated package publishing.
The vulnerability can lead to the introduction of untrusted code into your application, potentially compromising its security and integrity.
You should remove the 'mere_earwig_0xrequest' package from your project and monitor for any updates or patches that may address the vulnerability.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities using just your package-lock.json file. Visit Vulert Scanner to check your application without any signup.
Regularly audit your dependencies, use trusted packages, and stay informed about known vulnerabilities in the open-source ecosystem.