CVE-2022-24737: HTTPie Cookie Exposure Vulnerability
Summary
CVE-2022-24737: HTTPie is a command-line HTTP client. Affects httpie across 2 version ranges.
< 3.1.0
< 65ab7d5caaaf2f95e61f9dd65441801c2ddee38b
Fixed in 65ab7d5caaaf2f95e61f9dd65441801c2ddee38b. How to fix ↓
Also tracked for
- httpie · Debian:11
The same CVE-2022-24737 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
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
HTTPie is a command-line HTTP client that allows users to send HTTP requests and receive responses. It includes the concept of sessions, which enable users to persistently store state information related to requests and responses. This vulnerability in HTTPie versions before 3.1.0 allows cookies to be exposed when there are redirects from the actual host to a third-party website. The distinction between cookies and the hosts they belong to was not properly implemented, leading to potential security risks.
Vulnerability Detail
The vulnerability in HTTPie arises from the lack of distinction between cookies and the hosts they belong to. When there are redirects from the actual host to a third-party website, some cookies may be exposed. This can result in unauthorized access to sensitive information stored in cookies, potentially leading to session hijacking or other attacks. The vulnerability affects versions of HTTPie before 3.1.0.
How To Fix
Latest published version: 3.2.4 as of 22 Oct 2026
pip install --upgrade "httpie==3.2.4"
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
65ab7d5caaaf2f95e61f9dd65441801c2ddee38b
This is the first release that contains the fix.
pip install --upgrade "httpie==65ab7d5caaaf2f95e61f9dd65441801c2ddee38b"
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There are no known workarounds for this vulnerability. It is recommended to upgrade to the fixed version of HTTPie.
Conclusion
The HTTPie Cookie Exposure Vulnerability (CVE-2022-24737) allows for the exposure of cookies when there are redirects from the actual host to a third-party website. This can lead to unauthorized access to sensitive information stored in cookies. Users are advised to upgrade to HTTPie version 3.1.0 or later to mitigate this vulnerability. For further support on vulnerability remediation, contact DevNack.com.
See every vulnerability recorded for httpie →
FAQ
HTTPie is a command-line HTTP client that simplifies sending HTTP requests and receiving responses.
The vulnerability allows for the exposure of cookies, which can lead to unauthorized access to sensitive information and potential security breaches.
Versions of HTTPie before 3.1.0 are affected by this vulnerability.
No, there are no known workarounds for this vulnerability. Upgrading to the fixed version is recommended.
To fix this vulnerability, upgrade to HTTPie version 3.1.0 or later.
References
Related vulnerabilities
Recent vulnerabilities recorded for httpie.