CVE-2022-31186
CVSS V2 None
CVSS V3 Low 3.3
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.
Overview
- CVE ID
- CVE-2022-31186
- Assigner
- security-advisories@github.com
- Vulnerability Status
- Analyzed
- Published Version
- 2022-08-01T20:15:08
- Last Modified Date
- 2022-08-09T18:37:56
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:next-auth:nextauth.js:*:*:*:*:*:node.js:*:* | 1 | OR | 3.29.9 | |
cpe:2.3:a:next-auth:nextauth.js:*:*:*:*:*:node.js:*:* | 1 | OR | 4.0.0 | 4.10.2 |
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- Attack Vector
- LOCAL
- Attack Compatibility
- LOW
- Privileges Required
- LOW
- User Interaction
- NONE
- Scope
- UNCHANGED
- Confidentiality Impact
- LOW
- Availability Impact
- NONE
- Base Score
- 3.3
- Base Severity
- LOW
- Exploitability Score
- 1.8
- Impact Score
- 1.4
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2022-31186 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-31186 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-08-01 21:00:35 | Added to TrackCVE |