LiveActive security incident?Get immediate response
CVE Record

CVE-2021-41580: The passport-oauth2 package before 1.6.1 for Node.js mishandles the error condition of failure to obtain an...

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

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

Some Node.js applications using passport-oauth2 before 1.6.1 could treat an OAuth login failure as success in a narrow situation. The risk depends on how the identity provider reports failures and how the application validates tokens. The vendor reportedly does not consider this a passport-oauth2 vulnerability.

Executive priority

Treat this as a targeted authentication-control review, not a broad emergency. Prioritize internet-facing login flows and high-value applications using passport-oauth2 before 1.6.1, especially where OAuth token handling has not been independently tested.

Technical view

The issue concerns passport-oauth2 handling when access-token acquisition fails but the provider returns an HTTP 200 error response. Exposure requires an application to grant authorization merely after receiving a token-like response and not validate or use the token. The affected scope and severity are not quantified in the CVE data.

Likely exposure

Likely limited to Node.js applications using passport-oauth2 before 1.6.1 with OAuth providers that return authentication failures using HTTP 200, plus application logic that does not validate the resulting token before authorization.

Exploitation context

The source bundle does not show active exploitation, and the CVE is not in KEV. Exploitability is conditional on provider behavior and weak application authorization logic. No public exploit details are included in the provided sources.

Researcher notes

Evidence is incomplete: no CVSS, CWE, or affected CPEs are supplied. The key research question is whether the application treats a provider error response as successful authentication. The vendor-dispute note should be preserved in reporting.

Mitigation direction

  • Identify applications using passport-oauth2 before 1.6.1.
  • Upgrade passport-oauth2 to 1.6.1 or later where applicable.
  • Review OAuth callback logic for fail-closed behavior.
  • Require token validation before granting application authorization.
  • Check vendor guidance and application-specific OAuth assumptions.

Validation and detection

  • Inventory package-lock or dependency metadata for passport-oauth2 versions.
  • Review OAuth providers for HTTP 200 failure responses.
  • Confirm failed token acquisition cannot create an authenticated session.
  • Verify authorization requires a validated token or provider-backed identity.
  • Add regression tests for provider error responses.
Prepared
Confidence
medium
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

description · low confidence lookup

Credential and access behavior lookup

The CVE wording references authentication or credential exposure, so valid-account and credential-access review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-41580 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.