Upgrade a minor framework version with zero code changes, and your server build shrinks from 2.17 MB to 1.23 MB, 50 packages disappear from node_modules (473 down from 523), and initial page load on the e18e starter drops from 80.4 kB across 14 requests to 66.3 kB across 3 requests. That's what Nuxt 4.7.0 delivers, shipping alongside the Nuxt Scripts 1.3.13 patch.
Beyond faster SSR, the release opens early testing for the Nitro v3 server engine and browser WebMCP for AI agents, adds runtimeConfig validation via schemas like Zod, and fixes three vulnerabilities in routing rules and the dev server.
Official Nuxt 4.7 release banner (Source: nuxt.com)
Faster SSR, Lighter Bundles, and a Slimmer Nuxt Scripts
Minor updates usually bring small tweaks, but here the Nuxt team (@onmax alone submitted over twenty performance PRs) reworked the hot rendering path and client startup. The chart below shows server throughput benchmarks for the e18e starter, a page with a thousand links, and a ~170-page test app.
SSR Throughput: Nuxt 4.6.4 vs. Nuxt 4.7.0
The trick is straightforward: static internal <NuxtLink> tags no longer instantiate a Vue component per link and instead render as plain <a> tags. HTML encoding now streams in chunks, and experimental.staticRoutes builds the server route matcher once at startup instead of rebuilding it on every request. Just keep in mind that you shouldn't enable staticRoutes if your app adds routes dynamically at runtime.
On the client, entry, layout, and page chunks now include V8 compile hints so Chrome compiles functions off the main thread while downloading. Yields between startup phases reduce hydration blocking. On the Nuxt UI landing page, pre-hydration file count dropped from 18 to 6, and Total Blocking Time fell from 276 ms to 180 ms.
Unused pieces were trimmed too. ofetch stays out of the client bundle unless your code calls $fetch (restore the old behavior with experimental.globalFetch: true), and unhead is omitted when the client doesn't touch <head>. @nuxt/devtools is no longer a required dependency; it's replaced by a tiny @nuxt/devtools-onboard package that picks up installed DevTools v3/v4 or offers a one-click install. There's also a new builder: 'rsbuild' powered by @nuxt/rsbuild-builder, replacing the deprecated @nuxt/rspack-builder.
With experimental.viteEnvironmentApi (or compatibilityVersion: 5), client and server build in parallel. Real-world gains depend on project size: a large app builds about 7% faster, while a minimal starter is about 6% slower. If a custom Vite plugin reads the client build during the server build, disable parallelism with experimental.parallelBuild: false.
Alongside this, Nuxt Scripts 1.3.13 arrived for the 1.x branch: it removed valibot from the production client bundle, declared explicit Nuxt dependencies, and switched to its own LRU cache.
Early Nitro v3 Testing in Nuxt 4: Faster, but Stricter
In Nuxt 5, the server layer will move to Nitro v3 with h3 v2. Rather than waiting for the migration, Nuxt 4.7 lets you try the new engine with a single command and no config edits.
# Enable Nitro v3 in Nuxt 4.7+ (remove the package to roll back)
npm install nitro
On the same 170-page benchmark, Nuxt 4.7 with Nitro v3 delivered 33% more RPS on the home page (926 up to 1,236 req/s) and 44% more on the 1,000-link page (219 up to 316 req/s) with identical HTML output. It's too early for production, though: Nitro v3 is still a Release Candidate, and nitroViteEnvironment doesn't work with it in Nuxt 4 yet. Keep this test on a separate branch.
For a smooth transition, Nuxt 4 enables a nitroLegacy compatibility layer by default. It keeps h3/nitropack/#imports imports, Nitro v2 auto-imports, useRuntimeConfig(event), event.node, v2 hooks, and h3 v1 behavior. Once your app boots, turn the layer off to surface deprecated code.
// nuxt.config.ts — disable the compatibility layer after a successful run
export default defineNuxtConfig({
nitroLegacy: false,
})
Two rules change in Nitro v3 right away, even with nitroLegacy on. First, in routeRules, a wildcard like /blog/* now matches nested paths such as /blog/2026/hello (Nuxt warns with NUXT_B4029), and multiple wildcards like /api/*/items/** will fail the build—rewrite them with a named param like /api/:id/items/**. Second, server imports are strict: Nitro v3 no longer pulls in Nuxt's transitive dependencies, so packages like ufo must be listed explicitly in package.json.
runtimeConfig Validation, WebMCP, and New Dev Tools
The most practical everyday feature is runtimeConfig validation via Standard Schema. You can now pass Zod, Valibot, or ArkType schemas straight into nuxt.config.ts.
import { z } from 'zod'
export default defineNuxtConfig({
runtimeConfig: {
// Required secret: the server won't start without it
apiSecret: z.string(),
public: {
// Validated public variable with a default value
mode: z.enum(['preview', 'production']).default('production'),
},
},
})
At build time, Nuxt compiles the schema into a lightweight descriptor, so Zod or Valibot never enters the server bundle. On startup, environment variables are coerced to the expected types, and any mismatch stops the server immediately with an NUXT_E8014 report listing every invalid key.
Under experimental.webmcp, Nuxt adds experimental support for WebMCP, a draft browser API that exposes page actions as tools for browser-based AI agents. Just mark a handler with the @tool JSDoc tag.
<script setup lang="ts">
/**
* Add one of a product to the cart. Use when the user wants to buy.
* @tool
*/
function addToCart(sku: string) {
cart.value.push(sku)
}
</script>
<template>
<!-- The agent only sees active buttons and their real skus -->
<button
v-for="product in products"
:key="product.sku"
:disabled="!product.inStock"
@click="addToCart(product.sku)"
>
Add {{ product.name }}
</button>
</template>
Arguments come straight from the template, so the agent can only trigger actions available to the user. Putting @tool on @submit fills and submits forms; standalone tools use defineAgentTool() and useAgentTool(), and useAgentActivity() helps reflect agent actions in the UI. Nuxt also registers a navigate tool, writes a schema to .nuxt/webmcp/schema.json in dev mode (for webmcp-evals), and does nothing in browsers without WebMCP.
Other developer upgrades include experimental.ssrErrorBoundary, which lets <NuxtErrorBoundary> catch errors during SSR so one broken widget doesn't crash the whole page (it returns 200 with the #error slot, replaces <NuxtClientFallback> with retry-on-client, and adds clearBoundaryError). Template diagnostics catch broken <NuxtLink> tags (NUXT_B4025) and invalid v-on/v-model on server components (NUXT_B3014, NUXT_B3015). Paired with my-bad v1 and vite-plugin-checker v1, vue-tsc, ESLint, and Vue errors appear in one in-browser badge, and typescript.typeCheck accepts 'dev' or 'build'. Finally, Nuxt CLI 4.1 runs builds via build:environment:* and build:prerender:* hooks, supports HTTP/2 in nuxt dev --https, copies errors without a system clipboard (handy over SSH and in containers), and adds nuxt module build / nuxt module prepare.
Three Security Patches and an Upgrade Checklist
An early release draft mentioned "four" issues, but the final Nuxt v4.7.0 release on GitHub confirms exactly three vulnerabilities disclosed on November 24, 2026.
The main fix is GHSA-jxc9-w3j6-pwp2 (medium): page routeRules weren't applied to _payload.json. When a broad cache/swr/isr rule overlapped with an exclusion for a private page, the cache could serve one user's _payload.json to someone else. After deploying 4.7.0, make sure to purge CDN and edge caches for old _payload.json files.
The second fix, GHSA-vrh2-cfcx-c3fg (medium), completes an earlier patch (GHSA-f3x9-2chm-73c8) where repeated or leading URL-encoded slashes could bypass routeRules (such as appMiddleware) on catch-all routes. The third, GHSA-h5xj-x893-p5f7 (low, dev-only), prevented nuxt dev on untrusted networks from exposing private runtimeConfig via early Nitro artifacts.
Upgrade with the standard command:
# Upgrade Nuxt to 4.7.0, clean duplicates, and install vue ^3.5.46
npx nuxt upgrade --dedupe
Nuxt 4.7 requires at least vue ^3.5.46 and warns with NUXT_B7042 on older versions, though --dedupe updates Vue automatically. Don't panic if you see NUXT_B4025 warnings on external links or notice DevTools missing—that's just the new template check and DevTools moving to an optional package.
Post-Upgrade Checklist for Nuxt 4.7.0
- Purge CDN and edge caches for
_payload.jsonif you usedrouteRuleswithcache,swr, orisr. - Confirm your project runs
vue ^3.5.46and check logs forNUXT_B7042warnings. - Add
@nuxt/devtoolstodevDependencies(or install it via thenuxt devprompt) if you want the debug panel. - Add the
externalprop to<NuxtLink>for server routes,public/files, and external URLs (or setexperimental.templateDiagnostics: false). - Test
npm install nitroandexperimental.webmcpon a separate branch, not in production.
