Malicious Code Injection in grim_hare-silentdev Package
Summary
MAL-2025-103384: Malicious code in grim_hare-silentdev (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 grim_hare-silentdev package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. The primary functionality of this package is to serve as a derivative tool that generates and publishes other packages, but it has been compromised to include harmful scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability in grim_hare-silentdev originates from its association with a malicious campaign that aims to inflate developer reputation scores through the automatic generation of derivative packages. The malicious code modifies the package.json file to remove private flags, alters version numbers, and creates random package names, which leads to pollution of the npm registry. This can result in security risks for developers who unknowingly use these compromised packages, potentially exposing their applications to further vulnerabilities.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall grim_hare-silentdev
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 grim_hare-silentdev package from your project by executing the command: npm uninstall grim_hare-silentdev. This will prevent any malicious code from executing in your application until a secure version is available.
Conclusion
The grim_hare-silentdev package has been compromised with malicious code that poses significant risks to developers and their applications. It is crucial to take immediate action by updating or uninstalling the package to safeguard your projects from potential vulnerabilities.
See every vulnerability recorded for grim_hare-silentdev →
FAQ
grim_hare-silentdev is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores through the automatic generation of derivative packages.
The malicious code modifies the package.json file, removing private flags and altering version numbers, which can lead to security vulnerabilities in your application.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By utilizing the Vulert playground, you can check if your application is affected by this vulnerability without any signup.
If you cannot update the package, it is advisable to uninstall grim_hare-silentdev to mitigate any risks associated with the malicious code.
Detailed information about this vulnerability can be found in the official npm registry and security advisories related to the grim_hare-silentdev package.