nuxt
4.6.4 · 2 Nov 2026MIT3.5M / weekRepositoryHomepagenpmAtom feed
The latest release, 4.6.4, is affected by 4 advisories with no fixed version yet.See advisories
Your version
0.10.7 is the newest release of 0.3.x.
npm marks 0.3.6 as deprecated: Nuxt 1 has reached EOL and is no longer actively maintained. See nuxt.com/blog/nuxt2-eol for more details.
In short
1 new1 internal
Security
3 advisories affect 0.3.6; 4.6.0 fixes them
- Moderatenuxt vulnerable to Cross-site Scripting in navigateTo if used after SSRGHSA-vf6r-87q4-2vjf · 5 Aug 2024Fixed in 3.12.4
- LowNuxt: Incomplete fix for GHSA-934w-87qh-qr26: a `javascript:` URL prefixed with an ASCII control character executes from `<NuxtLink>` when `pages` is disabledGHSA-jjm6-p2m9-9w4x · 22 Oct 2026Fixed in 4.6.0
- LowCross-site scripting via <NoScript> slot content in Nuxt's head componentsGHSA-m3q2-p4fw-w38m · 16 Jun 2026Fixed in 3.21.7
Release note
Features
Add
redirectfield in thecontextreceived indata (context)andfetch (context), useful for authenticated routes:
// Ex: dashboard.vue
<script>
export default {
fetch ({ redirect, route }) {
// Check if user is connected via req.session or JWT...
redirect({
path: '/login',
query: { redirect: route.fullPath }
})
}
}
</script>You can also use redirect('/login') if you don't want to add any query parameter.
The redirect also works for nuxt generate and will create a html page with:
<meta http-equiv="refresh" content="0; url={{ redirectedPath }}" />
<script type="text/javascript">
window.location.href = '{{ redirectedPath }}'
</script>A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.