Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2022-31186: NextAuth.js is a complete open source authentication solution for Next.js applications

16
Routine
LOW 3.3UPGRADE

CVE-2022-31186 is a low-severity flaw (CVSS 3.3) affecting nextauth.js. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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

Why this priority

  • No elevated risk signals yet

A fixed release or distro patch exists.

Risk facts

CVSS score3.3 (Low)
Attack vectorLocal
Attack complexityLow
Privileges neededLow
User interactionNone
EPSS exploit chance0.3% (top 83%)
CISA exploited listNo
WeaknessCWE-532
Published2022-08-01
Last modified2026-06-17
Publisher (CNA): GitHub, Inc. · Vendor: next-auth

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

next-auth nextauth.js UPGRADE
Affected: < 3.29.9 · >= 4.0.0 and < 4.10.2
Fixed in: 3.29.9, 4.10.2
Safe to downgrade to: a release before 4.0.0
1. Check installed version
npm ls nextauth.js
2. UPGRADE to 3.29.9
npm install nextauth.js@">=3.29.9"
3. If no update is available yet, DOWNGRADE to a release before 4.0.0
npm view nextauth.js versions npm install nextauth.js@"<4.0.0"
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2022-31186?

nextauth.js: upgrade to 3.29.9, 4.10.2. Exact commands for each OS are on this page.

Is CVE-2022-31186 being exploited?

CVE-2022-31186 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2022-31186 affect?

CVE-2022-31186 affects nextauth.js. Severity is low (CVSS 3.3). 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 i

How urgent is CVE-2022-31186?

Priority 16/100. No elevated risk signals yet.

Software pages

Next.js vulnerabilities

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.