nuxt
4.6.4 · 2 Nov 2026MIT3.5M / weekRepositoryHomepagenpmAtom feed
0.10.7 is the newest release of 0.9.x.
In short
1 fixed1 changed
Security
3 advisories affect 0.9.5; 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
New Features
Using aync/await
You can use async/await in your components, the best use case is the asynchronous data method.
Example: pages/posts/_id.vue
<template>
<div>
<h1>{{ post.title }}</h1>
<pre>{{ post.body }}</pre>
</div>
</template>
<script>
import axios from 'axios'
export default {
async data ({ params }) {
// We can now use ES7 async/await
let { data } = await axios.get(`https://jsonplaceholder.typicode.com/posts/${params.id}`)
return { post: data }
}
}
</script>async/await example
See the updated documentation.
Extend webpack configuration
Add extend(webpackConfig, { dev, isClient, isServer }) option in the build configuration. This option let you extend the webpack configuration for your application, this is for advanced users.
Example: nuxt.config.js
module.exports = {
build: {
extend (config, { dev, isClient }) {
// config is the webpack config
// dev is a boolean, equals false when `nuxt build`
// isClient is a boolean, let you know when you extend
// the config for the client bundle or the server bundle
config.devtool = (dev ? 'eval-source-map' : false)
}
}Scroll to the top in page components
Add scrollToTop: true/false option in page component (default: false), this option, when set to true will force the router to scroll to the top of the page (used for children routes).
Core updates
The build of Nuxt.js does not use
babel-polyfillbut directly the required polyfills
Bug fixes
Fix the component data on hot-reloading (bug fix) when navigating trough the app
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.