Malicious Code Injection in helpful_mackerel_0xrequest Package
Summary
MAL-2025-103641: Malicious code in helpful_mackerel_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 helpful_mackerel_0xrequest package is part of the npm ecosystem, often utilized in JavaScript projects for various functionalities. However, it has been identified as part of a malicious campaign that floods the npm registry with harmful packages. This package, like others in the campaign, is designed to manipulate developer reputation scores through automated publishing of derivative packages.
Vulnerability Detail
The vulnerability stems from the package's involvement in a token reward campaign that exploits npm's publishing system. It contains scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names. This behavior leads to the continuous republishing of variants, which pollutes the npm registry and can compromise the integrity of projects that depend on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall helpful_mackerel_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 avoid using the helpful_mackerel_0xrequest package altogether and look for alternative packages that provide similar functionality without the associated risks.
Conclusion
The helpful_mackerel_0xrequest package poses a significant risk due to its malicious code that alters project files and floods the npm registry. It is crucial to remove this package from your projects and monitor for any dependencies that may be affected. Utilizing tools like Vulert can help in identifying vulnerabilities and maintaining the security of your software.
See every vulnerability recorded for helpful_mackerel_0xrequest →
FAQ
The package contains malicious code that modifies project files and floods the npm registry with harmful variants.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.
You should uninstall the package immediately using the command npm uninstall helpful_mackerel_0xrequest.
Yes, consider searching for other npm packages that offer similar functionalities without the associated risks.
Vulert uses your package-lock.json file to monitor and alert you in real-time for any open-source vulnerabilities in your software.