You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/getting-started/introduction.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,11 +46,11 @@ NextAuth versions under `4.22` are impacted by vulnerability [GHSA-v64w-49xw-qq8
46
46
47
47
::: details Further details
48
48
---
49
-
####Description of the vulnerability
49
+
### Description of the vulnerability
50
50
The vulnerability [GHSA-v64w-49xw-qq89](https://github.com/advisories/GHSA-v64w-49xw-qq89) only affects applications that rely on the default [Middleware authorization](https://next-auth.js.org/configuration/nextjs#middleware) provided by NextAuth.
51
51
52
52
The vulnerability allows attackers to create/mock a user, by accessing the JWT from an interrupted OAuth sign-in flow. They can then manually override the session cookie and simulate a login. However, doing this does **not** give access to the users data or permissions, but can allow attackers to view the layouts of protected pages.
53
53
54
-
####Why does it not effect NuxtAuth?
54
+
### Why does it not affect NuxtAuth?
55
55
As the affected middleware is written for Next.js, we wrote our own [custom middleware](https://github.com/sidebase/nuxt-auth/blob/main/src/runtime/middleware/auth.ts) for NuxtAuth that is not affected by the vulnerability.
@@ -226,73 +226,72 @@ export function useAuth(): UseAuthReturn {
226
226
* @param getSessionOptions - Options for getting the session, e.g., set `required: true` to enforce that a session _must_ exist, the user will be directed to a login page otherwise.
@@ -325,35 +324,20 @@ export function useAuth(): UseAuthReturn {
325
324
returnnavigateToAuthPageWN(nuxt,url)
326
325
}
327
326
328
-
awaitgetSessionWithNuxt(nuxt)
327
+
awaitgetSession()
329
328
returnsignoutData
330
329
}
331
330
332
-
/**
333
-
* Utilities to make nested async composable calls play nicely with nuxt.
334
-
*
335
-
* Calling nested async composable can lead to "nuxt instance unavailable" errors. See more details here: https://github.com/nuxt/framework/issues/5740#issuecomment-1229197529. To resolve this we can manually ensure that the nuxt-context is set. This module contains `callWithNuxt` helpers for some of the methods that are frequently called in nested `useAuth` composable calls.
@@ -369,3 +353,17 @@ export function useAuth(): UseAuthReturn {
369
353
}
370
354
}
371
355
exportdefaultuseAuth
356
+
357
+
/**
358
+
* Utilities to make nested async composable calls play nicely with nuxt.
359
+
*
360
+
* Calling nested async composable can lead to "nuxt instance unavailable" errors. See more details here: https://github.com/nuxt/framework/issues/5740#issuecomment-1229197529. To resolve this we can manually ensure that the nuxt-context is set. This module contains `callWithNuxt` helpers for some of the methods that are frequently called in nested `useAuth` composable calls.
0 commit comments