CVE-2022-31186

LowCVSS 3.3/10Last modified Jun 17, 2026

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.

Metrics

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

Weakness enumeration

Affected software

No affected versions have been published.

Timeline

Published
Aug 1, 2022
Last modified
Jun 17, 2026
NVD status
Modified

Related CVEs from 2022

CVE-2022-311875.4GLPI stands for Gestionnaire Libre de Parc Informatique and is a Free Asset and IT Management Software package, that provides ITIL Service DCVE-2022-311889.8CVAT is an opensource interactive video and image annotation tool for computer vision. Versions prior to 2.0.0 were found to be subject to aCVE-2022-311895.3DSpace open source software is a repository application which provides durable access to digital resources. dspace-jspui is a UI component fCVE-2022-31197.5The OAuth client Single Sign On WordPress plugin before 3.0.4 does not have authorisation and CSRF when updating its settings, which could aCVE-2022-311905.3DSpace open source software is a repository application which provides durable access to digital resources. dspace-xmlui is a UI component fCVE-2022-311916.1DSpace open source software is a repository application which provides durable access to digital resources. dspace-jspui is a UI component fCVE-2022-311926.1DSpace open source software is a repository application which provides durable access to digital resources. dspace-jspui is a UI component fCVE-2022-311936.1DSpace open source software is a repository application which provides durable access to digital resources. dspace-jspui is a UI component fCVE-2022-311947.2DSpace open source software is a repository application which provides durable access to digital resources. dspace-jspui is a UI component fCVE-2022-311957.2DSpace open source software is a repository application which provides durable access to digital resources. In affected versions the ItemImpCVE-2022-311967.5Databasir is a database metadata management platform. Databasir <= 1.06 has Server-Side Request Forgery (SSRF) vulnerability. The SSRF is trCVE-2022-311978.0PostgreSQL JDBC Driver (PgJDBC for short) allows Java programs to connect to a PostgreSQL database using standard, database independent Java