CVE-2019-9837: Doorkeeper openid connect Doorkeeper-openid_connect Contains Open Redirect Vulnerability
MODERATECVE-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
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).
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.
Upgrade doorkeeper-openid_connect to 1.5.4
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
CVE-2019-9837 Affected Doorkeeper openid connect Versions
1 component(s)| 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?
Which Doorkeeper openid connect versions are affected?
What version fixes CVE-2019-9837?
Is doorkeeper-openid_connect affected?
What is the CVSS score of CVE-2019-9837?
What CWE is associated with CVE-2019-9837?
How can I check RubyGems dependencies for CVE-2019-9837?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}