Advisory

GHSA-f794-r6xc-hf3v

Also known as: CVE-2021-41580

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-09-29 17:18 UTC
Modified
2023-11-08 04:06 UTC

Affected packages and fixes

passport-oauth2

npm · All systems

Affected

  • introduced 0, fixed 1.6.1 (semver)

Fixed versions

1.6.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences