CVE-2022-31186
Summary
| CVE | CVE-2022-31186 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-08-01 20:15:00 UTC |
| Updated | 2022-08-09 18:37:00 UTC |
| Description | NextAuth.js is a complete open source authentication solution for Next.js applications. An information disclosure vulnerability in `next-auth` before `v4.10.2` and `v3.29.9` allows an attacker with log access privilege to obtain excessive information such as an identity provider's secret in the log (which is thrown during OAuth error handling) and use it to leverage further attacks on the system, like impersonating the client to ask for extensive permissions. This issue has been patched in `v4.10.2` and `v3.29.9` by moving the log for `provider` information to the debug level. In addition, we added a warning for having the `debug: true` option turned on in production. If for some reason you cannot upgrade, you can user the `logger` configuration option by sanitizing the logs. |
Risk And Classification
Problem Types: CWE-532
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Next-auth | Nextauth.js | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Warnings | NextAuth.js | MISC | next-auth.js.org | |
| Options | NextAuth.js | MISC | next-auth.js.org | |
| Upgrade Guide (v4) | NextAuth.js | MISC | next-auth.js.org | |
| Leakage of excessive information into log in next-auth · Advisory · nextauthjs/next-auth · GitHub | CONFIRM | 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.