Vulnerabilities in pkg:pypi/httpie

PACKAGE
Advisory Identifier: GHSA-8r96-8889-qg2x
Advisory Summary

CVE-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.

4 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/httpie

4 Known Advisory Record(s)

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

CVE Identifier CVE-2023-48052
GHSA Identifier GHSA-8r96-8889-qg2x
Severity HIGH
CVSS v3.1 Base Score 7.4
CWE Classification CWE-295: Improper Certificate Validation
Affected Product Httpie
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (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.

httpie fixed: 3.2.3
pip install httpie>=3.2.3
Verify Direct and Transitive Dependencies

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

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.

CVE-2023-48052 Affected Httpie Versions

1 component(s)
Fixed Versions:
3.2.3
Product / Package Ecosystem Affected Versions Fixed Version
httpie
PyPI
< 3.2.3
3.2.3

References

Frequently Asked Questions

What is CVE-2023-48052?
CVE-2023-48052 is a security vulnerability in Httpie involving HTTPie allows attackers to eavesdrop on communications between the host and server via a man-in-the-middle attack under CWE-295: Improper Certificate Validation.
Which Httpie versions are affected?
Affected versions include releases prior to 3.2.3 across affected packages: httpie.
What version fixes CVE-2023-48052?
Upgrading to 3.2.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is httpie affected?
Yes, httpie is affected in releases prior to 3.2.3. Upgrade your dependency to 3.2.3 or later.
What is the CVSS score of CVE-2023-48052?
CVE-2023-48052 has a CVSS v3.1 base score of 7.4 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2023-48052?
CVE-2023-48052 is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check PyPI dependencies for CVE-2023-48052?
Run the dependency tree command: 'pip show httpie'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}