CVE-2022-31186
LOWDescription
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.
How to fix
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Exploit Intelligence
Low risk: more likely to be exploited than 16% of all known CVEs.
References
Related Vulnerabilities
Other CWE-532 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2019-1622 | Medium | 5.3 | 79% | - | - |
| CVE-2020-35234 | High | 7.5 | 63% | - | Fix |
| CVE-2023-43261 | High | 7.5 | 60% | - | Fix |
| CVE-2024-20440 | High | 7.5 | 51% | - | - |
| CVE-2018-3609 | High | 8.1 | 22% | - | - |
| CVE-2018-8719 | Medium | 5.3 | 16% | - | - |
Embed a live status badge for CVE-2022-31186
Markdown
[](https://tridentstack.com/cve/CVE-2022-31186)HTML
<a href="https://tridentstack.com/cve/CVE-2022-31186"><img src="https://tridentstack.com/cve/badge/CVE-2022-31186.svg" alt="CVE-2022-31186"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
Start freeThis product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.