Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2022-31186

3.3 · LOW
Published Aug 1, 2022 next-auth CWE-532 EPSS 0.26% (17th pctl)

Overview

CVE-2022-31186 is a low-severity vulnerability affecting next-auth nextauth.js. It was published on August 1, 2022 and has a CVSS 3.1 base score of 3.3 (LOW).

This vulnerability has a CVSS 3.1 base score of 3.3, rated LOW. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

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

Remediation

Check the references section for vendor advisories and patches from next-auth. Update nextauth.js to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
next-auth nextauth.js >= 0, < 3.29.9 Affected

Frequently Asked Questions

What is CVE-2022-31186?

CVE-2022-31186 is a low-severity vulnerability affecting next-auth nextauth.js. It was published on August 1, 2022 and has a CVSS 3.1 base score of 3.3 (LOW).

How severe is CVE-2022-31186?

This vulnerability has a CVSS 3.1 base score of 3.3, rated LOW. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2022-31186?

Check the references section for vendor advisories and patches from next-auth. Update nextauth.js to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-31186?

CyberStrike's AI-powered security agents can automatically detect CVE-2022-31186 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.