CVE-2022-0430: Httpie Exposure Of Sensitive Information Vulnerability

MODERATE
Advisory Identifier: GHSA-6pc9-xqrg-wfqw
CVSS 2.4
CWE-200
Published
Advisory Summary

CVE-2022-0430 is a MODERATE (CVSS 2.4) exposure of sensitive information vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Httpie libraries in the PyPI ecosystem. The issue involves exposure of sensitive information in httpie. Remediation is available by upgrading affected packages to version 3.1.0.

CVE-2022-0430 at a Glance

CVE Identifier CVE-2022-0430
GHSA Identifier GHSA-6pc9-xqrg-wfqw
Severity MODERATE
CVSS v3.1 Base Score 2.4
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Httpie
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 2.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2022-0430

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.1.0
pip install httpie>=3.1.0
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-2022-0430, 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.1.0), 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. 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

httpie is a modern, user-friendly command-line HTTP client for the API era. Prior to version 3.1.0, all cookies saved to session storage are supercookies. At this time, there is no known workaround. Users are recommended to update to version 3.1.0.

CVE-2022-0430 Affected Httpie Versions

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

References

Frequently Asked Questions

What is CVE-2022-0430?
CVE-2022-0430 is a security vulnerability in Httpie involving Exposure of Sensitive information in httpie under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Httpie versions are affected?
Affected versions include releases prior to 3.1.0 across affected packages: httpie.
What version fixes CVE-2022-0430?
Upgrading to 3.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is httpie affected?
Yes, httpie is affected in releases prior to 3.1.0. Upgrade your dependency to 3.1.0 or later.
What is the CVSS score of CVE-2022-0430?
CVE-2022-0430 has a CVSS v3.1 base score of 2.4 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2022-0430?
CVE-2022-0430 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check PyPI dependencies for CVE-2022-0430?
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-6pc9-xqrg-wfqw",
  "modified" : "2024-11-18T16:26:20Z",
  "published" : "2022-03-16T00:00:47Z",
  "aliases" : [ "CVE-2022-0430" ],
  "summary" : "Exposure of Sensitive information in httpie",
  "details" : "httpie is a modern, user-friendly command-line HTTP client for the API era. Prior to version 3.1.0, all cookies saved to session storage are supercookies. At this time, there is no known workaround. Users are recommended to update to version 3.1.0.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "httpie"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-0430"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/httpie/httpie/commit/65ab7d5caaaf2f95e61f9dd65441801c2ddee38b"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-6pc9-xqrg-wfqw"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/httpie/httpie"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/httpie/PYSEC-2022-167.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.dev/bounties/dafb2e4f-c6b6-4768-8ef5-b396cd6a801f"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-03-19T00:00:15Z",
    "nvd_published_at" : null
  }
}