CVE-2019-10751: Httpie Open Redirect Vulnerability

HIGH
Advisory Identifier: GHSA-xjjg-vmw6-c2p9
CVSS 8.8
CWE-601
Published
Advisory Summary

CVE-2019-10751 is a HIGH (CVSS 8.8) open redirect vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Httpie libraries in the PyPI ecosystem. The issue involves open redirect in httpie. Remediation is available by upgrading affected packages to version 1.0.3.

CVE-2019-10751 at a Glance

CVE Identifier CVE-2019-10751
GHSA Identifier GHSA-xjjg-vmw6-c2p9
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Httpie
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 8.8

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

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

How to Fix CVE-2019-10751

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: 1.0.3
pip install httpie>=1.0.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-2019-10751, 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 1.0.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-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. 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

All versions of the HTTPie package prior to version 1.0.3 are vulnerable to Open Redirect that allows an attacker to write an arbitrary file with supplied filename and content to the current directory, by redirecting a request from HTTP to a crafted URL pointing to a server in his or hers control.

CVE-2019-10751 Affected Httpie Versions

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

References

Frequently Asked Questions

What is CVE-2019-10751?
CVE-2019-10751 is a security vulnerability in Httpie involving Open Redirect in httpie under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Httpie versions are affected?
Affected versions include releases prior to 1.0.3 across affected packages: httpie.
What version fixes CVE-2019-10751?
Upgrading to 1.0.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is httpie affected?
Yes, httpie is affected in releases prior to 1.0.3. Upgrade your dependency to 1.0.3 or later.
What is the CVSS score of CVE-2019-10751?
CVE-2019-10751 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2019-10751?
CVE-2019-10751 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check PyPI dependencies for CVE-2019-10751?
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-xjjg-vmw6-c2p9",
  "modified" : "2024-09-20T21:26:30Z",
  "published" : "2019-08-27T17:44:33Z",
  "aliases" : [ "CVE-2019-10751" ],
  "summary" : "Open Redirect in httpie",
  "details" : "All versions of the HTTPie package prior to version 1.0.3 are vulnerable to Open Redirect that allows an attacker to write an arbitrary file with supplied filename and content to the current directory, by redirecting a request from HTTP to a crafted URL pointing to a server in his or hers control.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "httpie"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-10751"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-xjjg-vmw6-c2p9"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jakubroztocil/httpie"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jakubroztocil/httpie/releases/tag/1.0.3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/httpie/PYSEC-2019-23.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2019/09/msg00031.html"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-PYTHON-HTTPIE-460107"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00003.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00022.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-08-27T17:27:00Z",
    "nvd_published_at" : "2019-08-23T17:15:00Z"
  }
}