Vulnerabilities in pkg:pypi/httpie
PACKAGECVE-2023-48052 is a HIGH (CVSS 7.4) httpie allows attackers to eavesdrop vulnerability (CWE-295: Improper Certificate Validation) affecting Httpie libraries in the PyPI ecosystem. The issue involves httpie allows attackers to eavesdrop on communications between the host and server via a man-in-the-middle attack. Remediation is available by upgrading affected packages to version 3.2.3.
pkg:pypi/httpie
Vulnerability advisories affecting package pkg:pypi/httpie. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-8r96-8889-qg2x | CVE-2023-48052 | HIGH | HTTPie allows attackers to eavesdrop on communications between the host and server via a man-in-the-middle attack |
| GHSA-6pc9-xqrg-wfqw | CVE-2022-0430 | MODERATE | Exposure of Sensitive information in httpie |
| GHSA-9w4w-cpc8-h2fq | CVE-2022-24737 | MODERATE | Exposure of Sensitive Information to an Unauthorized Actor in httpie |
| GHSA-xjjg-vmw6-c2p9 | CVE-2019-10751 | HIGH | Open Redirect in httpie |
CVE-2023-48052 at a Glance
Security Impact
CVSS: 7.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N).
How to Fix CVE-2023-48052
To remediate this vulnerability, upgrade all affected Httpie dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install httpie>=3.2.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show httpie
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2023-48052, inspect your installed packages using pip:
pip show httpie
Analyze the terminal output to locate any version of Httpie in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.2.3), your application is affected.
Note: The pip show httpie command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Httpie, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-48052 Affected Httpie Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
httpie
|
PyPI |
< 3.2.3
|
3.2.3
|
References
Frequently Asked Questions
What is CVE-2023-48052?
Which Httpie versions are affected?
What version fixes CVE-2023-48052?
Is httpie affected?
What is the CVSS score of CVE-2023-48052?
What CWE is associated with CVE-2023-48052?
How can I check PyPI dependencies for CVE-2023-48052?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8r96-8889-qg2x",
"modified" : "2025-02-06T16:05:09Z",
"published" : "2023-11-16T18:30:31Z",
"aliases" : [ "CVE-2023-48052" ],
"summary" : "HTTPie allows attackers to eavesdrop on communications between the host and server via a man-in-the-middle attack",
"details" : "Missing SSL certificate validation in HTTPie v3.2.2 allows attackers to eavesdrop on communications between the host and server via a man-in-the-middle attack.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "httpie"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.2.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.2.2"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-48052"
}, {
"type" : "WEB",
"url" : "https://github.com/httpie/cli/issues/1549"
}, {
"type" : "WEB",
"url" : "https://github.com/httpie/cli/commit/7f03c52d2237440c5a672296ce6955aae4ed4f09"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/httpie/cli"
}, {
"type" : "WEB",
"url" : "https://github.com/httpie/cli/blob/master/httpie/client.py#L33"
}, {
"type" : "WEB",
"url" : "https://github.com/httpie/cli/blob/master/httpie/internal/update_warnings.py#L44"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/httpie/PYSEC-2023-242.yaml"
}, {
"type" : "WEB",
"url" : "https://gxx777.github.io/HTTPie_3.2.2_Cryptographic_API_Misuse_Vulnerability.md"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-295", "CWE-599" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-11-16T22:16:44Z",
"nvd_published_at" : "2023-11-16T18:15:07Z"
}
}