CVE-2023-27490
Published: 09 March 2023
Summary
CVE-2023-27490 is a high-severity CSRF (CWE-352) vulnerability in Nextauth.Js Next-Auth. Its CVSS base score is 8.1 (High).
Operationally, ranked at the 48.0th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2023-0931
Vulnerability details
NextAuth.js is an open source authentication solution for Next.js applications. `next-auth` applications using OAuth provider versions before `v4.20.1` have been found to be subject to an authentication vulnerability. A bad actor who can read traffic on the victim's network or…
more
who is able to social engineer the victim to click a manipulated login link could intercept and tamper with the authorization URL to **log in as the victim**, bypassing the CSRF protection. This is due to a partial failure during a compromised OAuth session where a session code is erroneously generated. This issue has been addressed in version 4.20.1. Users are advised to upgrade. Users unable to upgrade may using Advanced Initialization, manually check the callback request for state, pkce, and nonce against the provider configuration to prevent this issue. See the linked GHSA for details.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Requiring user re-entry of credentials for sensitive actions prevents automated forgery of requests without active user participation.
Session termination after a set interval shortens the usable lifetime of a fixed session identifier, making successful exploitation of session fixation more difficult.
Awareness training educates users on avoiding untrusted links and actions that can be exploited via CSRF.
Security testing regimens explicitly include checks for missing or ineffective anti-CSRF protections in web applications.
Enforces proper session ID generation and binding, preventing fixation of a known session token.
Detects anomalous request patterns consistent with cross-site request forgery.