{"id":"CVE-2021-41580","published":"2021-09-27T06:11:20Z","modified":"2024-08-04T03:15:29Z","title":"The passport-oauth2 package before 1.6.1 for Node.js mishandles the error condition of failure to obtain an access token","vendor":null,"product":null,"tier":"tail","description":{"text":"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","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01303,"percentile":0.7121,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/jaredhanson/passport-oauth2/pull/144","tags":["x_refsource_MISC"]},{"url":"https://github.com/jaredhanson/passport-oauth2/commit/8e3bcdff145a2219033bd782fc517229fe3e05ea","tags":["x_refsource_MISC"]},{"url":"https://github.com/jaredhanson/passport-oauth2/compare/v1.6.0...v1.6.1","tags":["x_refsource_MISC"]}],"priority":{"score":14.2,"factors":[{"name":"EPSS percentile","points":14.24}]},"affected":[{"ecosystem":"npm","package":"passport-oauth2","vulnerableRanges":["<1.6.1"],"patched":["1.6.1"],"from":["GHSA-f794-r6xc-hf3v"],"provenance":"source"}],"summary":{"text":"The passport-oauth2 package for Node.js, in versions before 1.6.1, mishandles the case where an OAuth access token cannot be obtained, so the failure is not reported correctly. An attacker can exploit this only where the OAuth identity provider returns an HTTP 200 status for authentication-failure responses and the application grants authorization merely upon receiving a token without validating it.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:03Z"},"euvd":{"id":"EUVD-2021-2050","exploited":false,"provenance":"source"}}