Malicious Code Detected in cassini-hydra-request-fetch Package
Summary
MAL-2025-16629: Malicious code in cassini-hydra-request-fetch (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 cassini-hydra-request-fetch package is an npm library designed for making HTTP requests in a streamlined manner. It is commonly used in JavaScript applications to facilitate data fetching from APIs. However, this package has been identified to contain malicious code, posing a significant risk to applications that depend on it.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the cassini-hydra-request-fetch package. This code can potentially compromise the security of applications using the package, leading to unauthorized access, data breaches, or other malicious activities. The issue is particularly concerning as it affects all versions starting from 0, making it imperative for users to take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall cassini-hydra-request-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, you can avoid using the cassini-hydra-request-fetch package and instead utilize other well-maintained libraries for making HTTP requests, such as axios or fetch. For example, to use axios, you can install it with: npm install axios and then use it in your code as follows:
const axios = require('axios');
axios.get('https://api.example.com/data')
.then(response => console.log(response.data))
.catch(error => console.error('Error fetching data:', error));
Conclusion
The cassini-hydra-request-fetch package has been identified as containing malicious code, which poses a serious threat to applications using it. Immediate action is required to mitigate risks by updating or replacing the package. Utilizing tools like Vulert can aid in ongoing vulnerability management.
See every vulnerability recorded for cassini-hydra-request-fetch →
FAQ
It is an npm library used for making HTTP requests in JavaScript applications.
The specific nature of the malicious code has not been disclosed, but it poses security risks to applications.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without signing up.
Consider using alternative libraries for HTTP requests, such as axios or fetch, until you can update.
Yes, using tools like Vulert can help automate the monitoring of your dependencies for vulnerabilities.