CVE-2022-31186
published low CVSS 3.1 · 3.3Leakage of excessive information into log in next-auth
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| nextauthjs | — | next-auth>= 4.0.0, < 4.10.2 · < 3.29.9 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 3.3 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| nextauthjs | next-auth | >= 4.0.0, < 4.10.2 (affected)< 3.29.9 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-532 CWE-532: Insertion of Sensitive Information into Log File
References
4Provider assertions
3GitHub_M · cna
Leakage of excessive information into log in next-auth
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 3a0a3b7067d72541072018f0f62437a6beebd248b3613ed9f4ebd4a815caf0fd
- Ingested
- 23 Sep 2026, 08:00:25 UTC
- Source record
- Official CVE record