Critical Malicious Code Vulnerability in node-fetch-lite Package
Summary
MAL-2026-17683: Malicious code in node-fetch-lite (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
node-fetch-lite is a lightweight module for making HTTP requests in Node.js, designed to be a minimalistic alternative to the native fetch API. It allows developers to easily send requests and handle responses in a streamlined manner. However, this package has been compromised, leading to significant security concerns for any application utilizing it.
Vulnerability Detail
The vulnerability stems from the presence of malicious code embedded within the node-fetch-lite package. This code can fully compromise any computer where the package is installed, allowing unauthorized access to sensitive information such as secrets and keys. The origin of this issue is linked to the package being flagged as malicious by security researchers, indicating that it may have been tampered with or intentionally designed to exploit users.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall node-fetch-lite
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 such as 'node-fetch' or 'axios' for making HTTP requests. These packages have not been flagged for malicious activity and can serve as reliable replacements. For example, to install 'node-fetch', run: 'npm install node-fetch'.
Conclusion
The node-fetch-lite package has been identified as containing malicious code that poses a serious security risk. Users are advised to uninstall the package immediately and consider alternative solutions for making HTTP requests. Regular monitoring of dependencies is crucial to maintaining application security.
See every vulnerability recorded for node-fetch-lite →
FAQ
You should immediately uninstall the package and rotate any sensitive information that may have been compromised.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
No, there is currently no patched version available for node-fetch-lite, making it essential to remove the package entirely.
You can use packages like 'node-fetch' or 'axios' as safer alternatives for making HTTP requests.
Regularly monitor your dependencies for vulnerabilities using tools like Vulert, which can alert you in real-time for open-source vulnerabilities.