CVE-2022-31186

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-31186
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31186.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-31186
Aliases
Published
2022-08-01T19:25:24Z
Modified
2025-10-22T18:31:57.914369Z
Severity
  • 3.3 (Low) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
Leakage of excessive information into log in next-auth
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-532"
    ]
}
References

Affected packages

Git / github.com/nextauthjs/next-auth

Affected ranges

Type
GIT
Repo
https://github.com/nextauthjs/next-auth
Events
Type
GIT
Repo
https://github.com/nextauthjs/next-auth
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v1.*

v1.13.0

v2.*

v2.0
v2.0.1
v2.1.0
v2.2.0

v3.*

v3.0.0
v3.0.1
v3.1.0
v3.10.0
v3.10.1
v3.11.0
v3.11.1
v3.11.2
v3.12.0
v3.13.0
v3.13.1
v3.13.2
v3.13.3
v3.14.0
v3.14.1
v3.14.2
v3.14.3
v3.14.4
v3.14.5
v3.14.6
v3.14.7
v3.14.8
v3.15.0
v3.15.1
v3.15.10
v3.15.11
v3.15.12
v3.15.13
v3.15.2
v3.15.3
v3.15.4
v3.15.5
v3.15.6
v3.15.7
v3.15.8
v3.15.9
v3.16.0
v3.16.1
v3.17.0
v3.17.1
v3.17.2
v3.18.0
v3.18.1
v3.18.2
v3.19.0
v3.19.1
v3.19.2
v3.19.3
v3.19.4
v3.19.5
v3.19.6
v3.19.7
v3.19.8
v3.2.0
v3.2.1
v3.20.0
v3.20.1
v3.21.0
v3.21.1
v3.22.0
v3.23.0
v3.23.1
v3.23.2
v3.23.3
v3.24.0
v3.24.1
v3.25.0
v3.26.0
v3.26.1
v3.27.0
v3.27.1
v3.27.2
v3.27.3
v3.28.0
v3.29.0
v3.29.1
v3.3.0
v3.3.1
v3.4.0
v3.4.1
v3.4.2
v3.5.0
v3.5.1
v3.6.0
v3.6.1
v3.7.0
v3.7.1
v3.8.0
v3.9.0