Security mailing lists by PureSourceCode

CVE-2022-31186

LOW 3.3CVSS 3.1

next-auth before v4.10.2 and v3.29.9 leaks excessive information into log

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.

Published
1 Aug 2022
Last modified
17 Jun 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-532
Also known as
GHSA-p6mm-27gq-9v3p
Sources
NVDJSONOSV GHSA-p6mm-27gq-9v3pJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 LOW 3.3 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 LOW 3.3 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
OSV GitHub CVSS 3.1 LOW 3.3 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD next-auth nextauth.js
cpe:2.3:a:next-auth:nextauth.js:*:*:*:*:*:node.js:*:*
< 3.29.9 3.29.9
NVD next-auth nextauth.js
cpe:2.3:a:next-auth:nextauth.js:*:*:*:*:*:node.js:*:*
>= 4.0.0, < 4.10.2 4.10.2
OSV npm next-auth < 3.29.9 3.29.9
OSV npm next-auth >= 4.0.0, < 4.10.2 4.10.2

References

History

  • 25 Nov 2026 20:34 UTC · NVD: first stored (published 1 Aug 2022)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 Aug 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.