CVE-2022-31093
CVE-2022-31093 is a high-severity vulnerability in Nextauth.js Next-auth with a CVSS 3.x base score of 7.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-754.
Key facts
- Severity: High (CVSS 3.x base score 7.5)
- CVSS v2: 5.0
- EPSS exploit prediction: 2% (72nd percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-754
- Affected product: Nextauth.js Next-auth
- Published:
- Last modified:
Description
NextAuth.js is a complete open source authentication solution for Next.js applications. In affected versions an attacker can send a request to an app using NextAuth.js with an invalid `callbackUrl` query parameter, which internally is converted to a `URL` object. The URL instantiation would fail due to a malformed URL being passed into the constructor, causing it to throw an unhandled error which led to the **API route handler timing out and logging in to fail**. This has been remedied in versions 3.29.5 and 4.5.0. If for some reason you cannot upgrade, the workaround requires you to rely on Advanced Initialization. Please see the documentation for more.
Frequently asked questions
- What is CVE-2022-31093?
- NextAuth.js is a complete open source authentication solution for Next.js applications. In affected versions an attacker can send a request to an app using NextAuth.js with an invalid `callbackUrl` query parameter, which internally is converted to a `URL` object. The URL instantiation would fail due to a malformed URL being passed into the constructor, causing it to throw an unhandled error which led to the **API route handler timing out and logging in to fail**. This has been remedied in versions 3.29.5 and 4.5.0. If for some reason you cannot upgrade, the workaround requires you to rely on Advanced Initialization. Please see the documentation for more.
- How severe is CVE-2022-31093?
- CVE-2022-31093 has a CVSS 3.x base score of 7.5, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is none, integrity none, and availability high.
- Is CVE-2022-31093 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 2% (72nd percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2022-31093?
- CVE-2022-31093 affects Nextauth.js Next-auth. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2022-31093?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2022-31093 published?
- CVE-2022-31093 was published on 2022-06-27 and last updated on 2026-06-17.
References
- https://github.com/nextauthjs/next-auth/commit/25517b73153332d948114bacdff3b5908de91d85
- https://github.com/nextauthjs/next-auth/commit/e498483b23273d1bfc81be68339607f88d411bd6
- https://github.com/nextauthjs/next-auth/security/advisories/GHSA-g5fm-jp9v-2432
- https://next-auth.js.org/configuration/initialization#advanced-initialization
Affected products (1)
- cpe:2.3:a:nextauth.js:next-auth:*:*:*:*:*:node.js:*:*
More vulnerabilities in Nextauth.js Next-auth
- CVE-2022-35924 — Critical (CVSS 9.1): NextAuth.js is a complete open source authentication solution for Next.js applications. `next-auth` users who are using…
- CVE-2023-27490 — High (CVSS 8.1): NextAuth.js is an open source authentication solution for Next.js applications. `next-auth` applications using OAuth…
- CVE-2022-31127 — High (CVSS 7.1): NextAuth.js is a complete open source authentication solution for Next.js applications. An attacker can pass a…
- CVE-2022-39263 — Medium (CVSS 6.8): `@next-auth/upstash-redis-adapter` is the Upstash Redis adapter for NextAuth.js, which provides authentication for…
- CVE-2022-29214 — Medium (CVSS 6.1): NextAuth.js (next-auth) is am open source authentication solution for Next.js applications. Prior to versions 3.29.3…
- CVE-2022-24858 — Medium (CVSS 6.1): next-auth v3 users before version 3.29.2 are impacted. next-auth version 4 users before version 4.3.2 are also…
All CVEs affecting Nextauth.js Next-auth →
Other CWE-754 (Improper Check for Unusual or Exceptional Conditions) vulnerabilities
- CVE-2026-24054 — Critical (CVSS 10.0): Kata Containers is an open source project focusing on a standard implementation of lightweight Virtual Machines (VMs)…
- CVE-2021-0211 — Critical (CVSS 10.0): An improper check for unusual or exceptional conditions in Juniper Networks Junos OS and Junos OS Evolved Routing…
- CVE-2026-8091 — Critical (CVSS 9.8): Incorrect boundary conditions in the Audio/Video: Playback component. This vulnerability was fixed in Firefox 150,…
- CVE-2024-52316 — Critical (CVSS 9.8): Unchecked Error Condition vulnerability in Apache Tomcat. If Tomcat is configured to use a custom Jakarta…
- CVE-2024-7826 — Critical (CVSS 9.8): Improper Check for Unusual or Exceptional Conditions vulnerability in Webroot SecureAnywhere - Web Shield on Windows,…
- CVE-2023-37303 — Critical (CVSS 9.8): An issue was discovered in the CheckUser extension for MediaWiki through 1.39.3. In certain situations, an attempt to…
Browse all CWE-754 (Improper Check for Unusual or Exceptional Conditions) vulnerabilities →