next-auth vulnerabilities
Authentication for Next.js
- Registry
- npm
- Latest
- 4.24.15
- License
- ISC
14 known advisories
The latest version, 4.24.15, is not affected by any of them. Projects on older versions may be.
npm install next-auth@4.24.15Is your project on an affected next-auth?
Look after several JavaScript apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Security advisories for next-auth
Auth.js: Configuration errors can cause existence-based auth checks to fail open (auth object populated with an error)
- Affected
- >=5.0.0-beta.0 <5.0.0-beta.32
- Fixed in
- 5.0.0-beta.32
Auth.js: getToken() throws an uncaught exception on malformed Bearer authorization headers
- Affected
- >=5.0.0-beta.0 <5.0.0-beta.32 · >=4.0.6 <4.24.15
- Fixed in
- 4.24.15, 5.0.0-beta.32
Auth.js: Email normalizer validates the address before Unicode normalization, allowing a homoglyph @ bypass
- Affected
- >=4.10.3 <4.24.15 · >=5.0.0-beta.1 <5.0.0-beta.32
- Fixed in
- 4.24.15, 5.0.0-beta.32
Auth.js: OAuth state, nonce, and PKCE check cookies are not bound to the provider that created them
- Affected
- >=5.0.0-beta.1 <5.0.0-beta.32 · <4.24.15
- Fixed in
- 4.24.15, 5.0.0-beta.32
NextAuthjs Email misdelivery Vulnerability
- Affected
- <4.24.12 · >=5.0.0-beta.0 <5.0.0-beta.30
- Fixed in
- 4.24.12, 5.0.0-beta.30
Possible user mocking that bypasses basic authentication
- Affected
- <4.24.5
- Fixed in
- 4.24.5
Missing proper state, nonce and PKCE checks for OAuth authentication
- Affected
- <4.20.1
- Fixed in
- 4.20.1
next-auth before v4.10.2 and v3.29.9 leaks excessive information into log
- Affected
- <3.29.9 · >=4.0.0 <4.10.2
- Fixed in
- 3.29.9, 4.10.2
NextAuth.js before 4.10.3 and 3.29.10 sending verification requests (magic link) to unwanted emails
- Affected
- >=4.0.0 <4.10.3 · <3.29.10
- Fixed in
- 3.29.10, 4.10.3
Improper handling of email input
- Affected
- <3.29.8 · >=4.0.0 <4.9.0
- Fixed in
- 3.29.8, 4.9.0
Improper Handling of `callbackUrl` parameter in next-auth
- Affected
- <3.29.5 · >=4.0.0 <4.5.0
- Fixed in
- 3.29.5, 4.5.0
URL Redirection to Untrusted Site ('Open Redirect') in next-auth
- Affected
- <3.29.3 · >=4.0.0 <4.3.3
- Fixed in
- 3.29.3, 4.3.3
NextAuth.js default redirect callback vulnerable to open redirects
- Affected
- <3.29.2 · >=4.0.0 <4.3.2
- Fixed in
- 3.29.2, 4.3.2
Token verification bug in next-auth
- Affected
- <3.3.0
- Fixed in
- 3.3.0
Is your next-auth version vulnerable?
- next-auth 4.24No known advisories in 4.24.15
- next-auth 4.235 advisories in 4.23.2
- next-auth 4.225 advisories in 4.22.5
- next-auth 4.215 advisories in 4.21.1
- next-auth 4.205 advisories in 4.20.1
- next-auth 4.196 advisories in 4.19.2
- next-auth 3.294 advisories in 3.29.10
- next-auth 3.2810 advisories in 3.28.0
- next-auth 3.2710 advisories in 3.27.3
- next-auth 3.2610 advisories in 3.26.1
- next-auth 3.2510 advisories in 3.25.0
- next-auth 3.2410 advisories in 3.24.1
- next-auth 2.211 advisories in 2.2.0
- next-auth 2.111 advisories in 2.1.0
- next-auth 2.011 advisories in 2.0.1
Which of your client projects still run an old next-auth?
NPMscan reads the package-lock.json, yarn.lock and pnpm-lock.yaml in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.
Other npm packages
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the npm registry.