Critical Malware Installation Vulnerability in got-fetch Package
Summary
MAL-2025-6024: Malicious code in got-fetch (npm). Affects got-fetch versions 5.1.11 – 5.1.12. 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 got-fetch package is a popular npm library used for making HTTP requests in Node.js applications. It simplifies the process of fetching resources over the network, providing a user-friendly API for developers. However, this package has been found to contain a serious vulnerability that allows the installation of malicious software.
Vulnerability Detail
The vulnerability arises from the installation script (install.js) of the got-fetch package, which is designed to install a Windows-based malware file named node-gyp.dll. This malicious code can compromise the security of the host system, potentially leading to unauthorized access, data theft, or further exploitation of the system. The origin of this vulnerability is linked to the package's malicious intent, making it a significant threat to users who install it.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall got-fetch
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, avoid using the got-fetch package and consider using alternative libraries for making HTTP requests, such as axios or node-fetch, which do not have known vulnerabilities.
Conclusion
The got-fetch package contains a critical vulnerability that allows the installation of malicious software, posing a significant risk to users. It is essential to uninstall the package immediately and consider alternatives for HTTP requests. Regularly monitor your dependencies for vulnerabilities using tools like Vulert.
See every vulnerability recorded for got-fetch →
FAQ
Got-fetch is an npm package used for making HTTP requests in Node.js applications.
The vulnerability installs a Windows-based malware file named node-gyp.dll.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
If you have installed got-fetch, immediately uninstall it using npm uninstall got-fetch and consider using alternative libraries.
Currently, there is no patch available for got-fetch. It is recommended to uninstall the package until a secure version is released.