CVE-2022-31186: NextAuth.js is a complete open source authentication solution for Next.js applications
CVE-2022-31186 is a low-severity flaw (CVSS 3.3) affecting nextauth.js. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 3.3 (Low) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.3% (top 83%) |
| CISA exploited list | No |
| Weakness | CWE-532 |
| Published | 2022-08-01 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-31186?
nextauth.js: upgrade to 3.29.9, 4.10.2. Exact commands for each OS are on this page.
Is CVE-2022-31186 being exploited?
CVE-2022-31186 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-31186 affect?
CVE-2022-31186 affects nextauth.js. Severity is low (CVSS 3.3). 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 i
How urgent is CVE-2022-31186?
Priority 16/100. No elevated risk signals yet.