Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1mNzk0LXI2eGMtaGYzds0WCQ

Improper Access Control in passport-oauth2

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.

Permalink: https://github.com/advisories/GHSA-f794-r6xc-hf3v
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1mNzk0LXI2eGMtaGYzds0WCQ
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 2 years ago
Updated: over 1 year ago


CVSS Score: 5.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Identifiers: GHSA-f794-r6xc-hf3v, CVE-2021-41580
References: Repository: https://github.com/jaredhanson/passport-oauth2
Blast Radius: 24.9

Affected Packages

npm:passport-oauth2
Dependent packages: 758
Dependent repositories: 48,843
Downloads: 2,774,392 last month
Affected Version Ranges: < 1.6.1
Fixed in: 1.6.1
All affected versions: 1.0.0, 1.1.0, 1.1.1, 1.1.2, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 1.6.0
All unaffected versions: 1.6.1, 1.7.0, 1.8.0