Loading advisory.
Loading advisory.
Exposure of Sensitive Information to an Unauthorized Actor in httpie
HTTPie have the practical concept of sessions, which help users to persistently store some of the state that belongs to the outgoing requests and incoming responses on the disk for further usage. As an example, we can make an authenticated request and save it to a named session called api:
Published 2022-03-07 23:10 UTC · Modified 2025-04-22 18:20 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| httpie | PyPI | < 3.1.0 git commits in https://github.com/httpie/httpie: < 65ab7d5caaaf2f95e61f9dd65441801c2ddee38b versions 0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.4dev, 0.2.5, 0.2.6, 0.2.7, 0.3.0, 0.3.1, 0.4.0, 0.4.1 and 29 more | 3.1.0, 65ab7d5caaaf2f95e61f9dd65441801c2ddee38b | pip install --upgrade 'httpie>=3.1.0'pip install --upgrade 'httpie>=65ab7d5caaaf2f95e61f9dd65441801c2ddee38b' |
HTTPie have the practical concept of sessions, which help users to persistently store some of the state that belongs to the outgoing requests and incoming responses on the disk for further usage. As an example, we can make an authenticated request and save it to a named session called api:
$ http --session api -a user:pass pie.dev/basic-auth/user/pass{
"authenticated": true,
"user": "user"
}Since we have now saved the authentication data to that session, we won‘t have to enter it again and again on every invocation. We can simply reference the session, and HTTPie will use the saved state directly from it:
$ http --session api pie.dev/basic-auth/user/pass{
"authenticated": true,
"user": "user"
}One particular use case of these sessions is storing cookies (commonly referred to as a Cookie Jar). If a response has a Set-Cookie
header, HTTPie will parse it and store the actual cookie in the session. And from that point on, all outgoing requests will attach that cookie (in the form of a Cookie header).
This is extremely useful, especially when you are dealing with websites which manage their own state on the client-side through cookies.
$ http -F --session jar pie.dev/cookies/set/x/y{
"cookies": {
"x": "y"
}
}Before 3.1.0, HTTPie didn‘t distinguish between cookies and hosts they belonged. This behavior resulted in the exposure of some cookies when there are redirects originating from the actual host to a third party website, e.g:
$ http -F --session jar pie.dev/redirect-to url==https://httpbin.org/cookies(Pre 3.1.0)
{
"cookies": {
"x": "y"
}
}(Post 3.1.0)
{
"cookies": {}
}This behavior has been corrected in this release (with taking RFC 6265 — HTTP State Management Mechanism into the consideration).
A huge credit goes to @Glyph for disclosing the original vulnerability to us (through huntr.dev).
We suggest users to upgrade their HTTPie version to 3.1.0 or higher, and run httpie cli sessions upgrade command on their sessions.
If you have any questions or comments about this advisory:
Email us: security@httpie.io
Please note that this entry is covered by both CVE-2022-24737 and CVE-2022-0430.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.017 on 2026-11-24 to 0.016 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.017 | first score | v2026.06.15 |
| 2026-11-26 | 0.016 | 0.017 | v2026.06.15 |