CVE-2022-31186
NextAuth.js Information Disclosure Vulnerability
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.
INFO
Published Date :
Aug. 1, 2022, 8:15 p.m.
Last Modified :
Nov. 21, 2024, 7:04 a.m.
Source :
[email protected]
Remotely Exploitable :
No
Impact Score :
1.4
Exploitability Score :
1.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-31186
.
URL | Resource |
---|---|
https://github.com/nextauthjs/next-auth/security/advisories/GHSA-p6mm-27gq-9v3p | Third Party Advisory |
https://next-auth.js.org/configuration/options#logger | Vendor Advisory |
https://next-auth.js.org/getting-started/upgrade-v4 | Vendor Advisory |
https://next-auth.js.org/warnings#debug_enabled | Vendor Advisory |
https://github.com/nextauthjs/next-auth/security/advisories/GHSA-p6mm-27gq-9v3p | Third Party Advisory |
https://next-auth.js.org/configuration/options#logger | Vendor Advisory |
https://next-auth.js.org/getting-started/upgrade-v4 | Vendor Advisory |
https://next-auth.js.org/warnings#debug_enabled | Vendor Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-31186
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-31186
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/nextauthjs/next-auth/security/advisories/GHSA-p6mm-27gq-9v3p Added Reference https://next-auth.js.org/configuration/options#logger Added Reference https://next-auth.js.org/getting-started/upgrade-v4 Added Reference https://next-auth.js.org/warnings#debug_enabled -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Initial Analysis by [email protected]
Aug. 09, 2022
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N Changed Reference Type https://github.com/nextauthjs/next-auth/security/advisories/GHSA-p6mm-27gq-9v3p No Types Assigned https://github.com/nextauthjs/next-auth/security/advisories/GHSA-p6mm-27gq-9v3p Third Party Advisory Changed Reference Type https://next-auth.js.org/configuration/options#logger No Types Assigned https://next-auth.js.org/configuration/options#logger Vendor Advisory Changed Reference Type https://next-auth.js.org/getting-started/upgrade-v4 No Types Assigned https://next-auth.js.org/getting-started/upgrade-v4 Vendor Advisory Changed Reference Type https://next-auth.js.org/warnings#debug_enabled No Types Assigned https://next-auth.js.org/warnings#debug_enabled Vendor Advisory Added CPE Configuration OR *cpe:2.3:a:next-auth:nextauth.js:*:*:*:*:*:node.js:*:* versions up to (excluding) 3.29.9 *cpe:2.3:a:next-auth:nextauth.js:*:*:*:*:*:node.js:*:* versions from (including) 4.0.0 up to (excluding) 4.10.2
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-31186
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-31186
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.04 }} 0.00%
score
0.12212
percentile