GHSA-f794-r6xc-hf3v

Suggest an improvement
Source
https://github.com/advisories/GHSA-f794-r6xc-hf3v
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-f794-r6xc-hf3v/GHSA-f794-r6xc-hf3v.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-f794-r6xc-hf3v
Aliases
Published
2021-09-29T17:18:32Z
Modified
2023-11-08T04:06:59Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
Improper Access Control in passport-oauth2
Details

The passport-oauth2 package before 1.6.1 for Node.js mishandles the error condition of failure to obtain an access token. This is exploitable in certain use cases where an OAuth identity provider uses an HTTP 200 status code for authentication-failure error reports, and an application grants authorization upon simply receiving the access token (i.e., does not try to use the token). NOTE: the passport-oauth2 vendor does not consider this a passport-oauth2 vulnerability.

Database specific
{
    "cwe_ids":  [
        "CWE-287"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2021-09-28T21:14:20Z",
    "nvd_published_at":  "2021-09-27T07:15:00Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / passport-oauth2

Package

Name
passport-oauth2
View open source insights on deps.dev
Purl
pkg:npm/passport-oauth2

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.6.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-f794-r6xc-hf3v/GHSA-f794-r6xc-hf3v.json"