CVE & CISA-KEV Catalog

CVE-2022-31186

LOW
3.3
CVSS v3
NVD

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.

How to fix

Remediation Available
nextauth.jsNVD
Affected:>= 4.0.0, < 4.10.2Fixed in:4.10.2CVE-2022-31186derived from NVD

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

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityLow
IntegrityNone
AvailabilityNone

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Exploit Intelligence

0.24%probability of exploitation in 30 days
16thpercentile

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

CVESeverityCVSSEPSSExploitedFix
CVE-2019-1622Medium5.379%--
CVE-2020-35234High7.563%-Fix
CVE-2023-43261High7.560%-Fix
CVE-2024-20440High7.551%--
CVE-2018-3609High8.122%--
CVE-2018-8719Medium5.316%--
Embed a live status badge for CVE-2022-31186
CVE-2022-31186 severity badge

Markdown

[![CVE-2022-31186](https://tridentstack.com/cve/badge/CVE-2022-31186.svg)](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 free

This 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.