CVE-2022-31093
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
next-authnpm | < 3.29.5 | 3.29.5 |
next-authnpm | >= 4.0.0, < 4.5.0 | 4.5.0 |
Affected products
3cpe:2.3:a:nextauth.js:next-auth:*:*:*:*:*:node.js:*:*+ 1 more
- cpe:2.3:a:nextauth.js:next-auth:*:*:*:*:*:node.js:*:*range: >=3.0.0,<3.29.5
- (no CPE)range: < 3.29.5
Patches
Vulnerability mechanics
References
6- github.com/nextauthjs/next-auth/commit/25517b73153332d948114bacdff3b5908de91d85nvdPatchThird Party AdvisoryWEB
- github.com/nextauthjs/next-auth/commit/e498483b23273d1bfc81be68339607f88d411bd6nvdPatchThird Party AdvisoryWEB
- github.com/advisories/GHSA-g5fm-jp9v-2432ghsaADVISORY
- github.com/nextauthjs/next-auth/security/advisories/GHSA-g5fm-jp9v-2432nvdMitigationThird Party AdvisoryWEB
- next-auth.js.org/configuration/initializationnvdVendor AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2022-31093ghsaADVISORY
News mentions
0No linked articles in our index yet.