CVE-2022-31186
3.3 · LOWOverview
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 |
References
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.
How CyberStrike Helps
AI agents map your attack surface to find vulnerabilities like this one.
Automated penetration testing that runs continuously, not just quarterly.
AI-driven PR review catches vulnerable dependencies before they ship.
Browser-based exploitation validates findings with real proof-of-concept.
Related LOW CVEs from 2022
View all →Abitrary file access vulnerability in Samsung Email prior to 6.1.60.16 allows attacker to read isola
Vulnerability in the Oracle Solaris product of Oracle Systems (component: Install). The supported ve
PendingIntent hijacking vulnerability in KnoxPrivacyNoticeReceiver prior to SMR Feb-2022 Release 1 a
PendingIntent hijacking vulnerability in CpaReceiver prior to SMR Feb-2022 Release 1 allows local at
PendingIntent hijacking vulnerability in DataUsageReminderReceiver prior to SMR Feb-2022 Release 1 a
An insecure data storage vulnerability allows a physical attacker with root privileges to retrieve T
Redis is an in-memory database that persists on disk. By exploiting weaknesses in the Lua script exe
In JetBrains IntelliJ IDEA before 2022.1 reflected XSS via error messages in internal web server was
In JetBrains IntelliJ IDEA before 2022.1 origin checks in the internal web server were flawed
Improper file permissions in the CommandPost, Collector, and Sensor components of Fidelis Network an
In finishDrawingWindow of WindowManagerService.java, there is a possible tapjacking due to improper
In JetBrains IntelliJ IDEA before 2022.2 local code execution via a Vagrant executable was possible