Malicious Code Injection in correct_earwig-gooddev Package
Summary
MAL-2025-101014: Malicious code in correct_earwig-gooddev (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 correct_earwig-gooddev package is part of the npm ecosystem, which is widely used for JavaScript development. This package is suspected to be involved in a token reward campaign that aims to inflate developer reputation scores through the automatic generation and publication of derivative packages. The malicious nature of this package compromises its integrity and poses risks to developers who may unknowingly use it.
Vulnerability Detail
The vulnerability originates from the package being part of a malicious campaign that floods the npm registry with derivative packages. It contains scripts that modify the package.json file to remove private flags, change version numbers, and generate random package names. This behavior can lead to the pollution of the npm registry, potentially affecting other developers and projects that rely on npm packages. The malicious payload can also compromise the security of applications that depend on this package, leading to further exploitation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall correct_earwig-gooddev
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 avoid using the correct_earwig-gooddev package and look for alternative packages that provide similar functionality without the associated risks. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The correct_earwig-gooddev package contains malicious code that poses significant risks to developers and their projects. It is crucial to remove this package and monitor for vulnerabilities to maintain the security of your applications. Utilizing tools like Vulert can help in identifying and managing such vulnerabilities effectively.
See every vulnerability recorded for correct_earwig-gooddev →
FAQ
The correct_earwig-gooddev package is an npm package that is suspected to be part of a malicious campaign aimed at inflating developer reputation scores.
This vulnerability can lead to the pollution of the npm registry and may compromise the security of applications that depend on the affected package.
If you have installed the correct_earwig-gooddev package, it is advisable to remove it from your project and look for safer alternatives.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.