CVE-2022-31093
Summary
| CVE | CVE-2022-31093 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-06-27 22:15:00 UTC |
| Updated | 2022-07-07 19:45:00 UTC |
| 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. |
Risk And Classification
Problem Types: CWE-754
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Nextauth.js | Next-auth | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Improper Handling of `callbackUrl` parameter in next-auth · Advisory · nextauthjs/next-auth · GitHub | CONFIRM | github.com | |
| Initialization | NextAuth.js | MISC | next-auth.js.org | |
| fix: handle invalid `callbackUrl` · nextauthjs/next-auth@25517b7 · GitHub | MISC | github.com | |
| test: add test for invalid `callbackUrl` handling · nextauthjs/next-auth@e498483 · GitHub | MISC | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.