CVE-2019-9837: Doorkeeper openid connect Doorkeeper-openid_connect Contains Open Redirect Vulnerability

MODERATE
Advisory Identifier: GHSA-vv4c-g6q7-p3q7
CVSS 6.1
CWE-601
Published
Advisory Summary

CVE-2019-9837 is a MODERATE (CVSS 6.1) doorkeeper-openid_connect contains open redirect vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Doorkeeper openid connect libraries in the RubyGems ecosystem. The issue involves doorkeeper-openid_connect contains open redirect. Remediation is available by upgrading affected packages to version 1.5.4.

CVE-2019-9837 at a Glance

CVE Identifier CVE-2019-9837
GHSA Identifier GHSA-vv4c-g6q7-p3q7
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Doorkeeper openid connect
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 6.1

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:C/C:L/I:L/A:N).

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

How to Fix CVE-2019-9837

To remediate this vulnerability, upgrade all affected Doorkeeper openid connect dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

doorkeeper-openid_connect fixed: 1.5.4
Upgrade doorkeeper-openid_connect to 1.5.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for doorkeeper-openid_connect

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-9837, inspect your project dependencies for Doorkeeper openid connect:

inspect dependencies for doorkeeper-openid_connect

Analyze the terminal output to locate any version of Doorkeeper openid connect in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.4), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

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 Doorkeeper openid connect, 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

Doorkeeper::OpenidConnect (aka the OpenID Connect extension for Doorkeeper) 1.4.x and 1.5.x before 1.5.4 has an open redirect via the redirect_uri field in an OAuth authorization request (that results in an error response) with the 'openid' scope and a prompt=none value. This allows phishing attacks against the authorization flow.

CVE-2019-9837 Affected Doorkeeper openid connect Versions

1 component(s)
Fixed Versions:
1.5.4
Product / Package Ecosystem Affected Versions Fixed Version
doorkeeper-openid_connect
RubyGems
≥ 1.4.0
< 1.5.4
1.5.4

References

Frequently Asked Questions

What is CVE-2019-9837?
CVE-2019-9837 is a security vulnerability in Doorkeeper openid connect involving Doorkeeper-openid_connect contains Open Redirect under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Doorkeeper openid connect versions are affected?
Affected versions include releases prior to 1.5.4 across affected packages: doorkeeper-openid_connect.
What version fixes CVE-2019-9837?
Upgrading to 1.5.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is doorkeeper-openid_connect affected?
Yes, doorkeeper-openid_connect is affected in releases prior to 1.5.4. Upgrade your dependency to 1.5.4 or later.
What is the CVSS score of CVE-2019-9837?
CVE-2019-9837 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2019-9837?
CVE-2019-9837 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 RubyGems dependencies for CVE-2019-9837?
Run the dependency tree command: 'inspect dependencies for doorkeeper-openid_connect'. 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-vv4c-g6q7-p3q7",
  "modified" : "2023-03-13T23:56:32Z",
  "published" : "2019-03-25T16:15:54Z",
  "aliases" : [ "CVE-2019-9837" ],
  "summary" : "Doorkeeper-openid_connect contains Open Redirect",
  "details" : "Doorkeeper::OpenidConnect (aka the OpenID Connect extension for Doorkeeper) 1.4.x and 1.5.x before 1.5.4 has an open redirect via the redirect_uri field in an OAuth authorization request (that results in an error response) with the 'openid' scope and a prompt=none value. This allows phishing attacks against the authorization flow.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "doorkeeper-openid_connect"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.4.0"
      }, {
        "fixed" : "1.5.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-9837"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/doorkeeper-gem/doorkeeper-openid_connect/issues/61"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/doorkeeper-gem/doorkeeper-openid_connect/pull/66"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/doorkeeper-gem/doorkeeper-openid_connect"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/doorkeeper-gem/doorkeeper-openid_connect/blob/master/CHANGELOG.md"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:58:19Z",
    "nvd_published_at" : null
  }
}