Packages

nuxt

4.6.4 · 2 Nov 2026MIT3.6M / weekRepositoryHomepagenpmAtom feed

The latest release, 4.6.4, is affected by 4 advisories with no fixed version yet.See advisories
Your version

4.6.4

Latest2 Nov 2026Where it was published

In short

1 breaking9 fixed5 changed16 internal

  • Breaking

    nitro,nuxt: require unrouting 0.3.2

Security

Fixes 1 advisory that affected 4.6.3

Release note

The section about nuxt of a note shared by several packages.

4.6.4 is a security release. It fixes eight advisories in Nuxt and pulls in nitropack 2.13.6, which fixes three more in Nitro. We recommend upgrading as soon as you can.

Behaviour changes

These probably won't affect most apps, but it's worth flagging anyway:

  1. Error details in production. When a page fails to render on the server, the error page and the payload now only carry message and data of errors you create with createError. Everything else is stripped.

  2. Dev server Host checks. Webpack and rspack dev servers now reject requests with an unexpected Host header, as Vite already does. If you use a custom hostname or tunnel, you'll need to add it to the new devServer.allowedHosts option.

  3. workspaceDir detection. When workspaceDir isn't set, Nuxt now only widens it past rootDir to an explicit workspace root or the closest git repository.

  4. Nitropack cached routes. cache, swr and isr route rules now only cache GET and HEAD requests, and no longer store responses that set a cookie or send Cache-Control: private or no-store. Wildcard proxy and redirect rules also reject requests whose resolved target would leave the rule's scope.

  5. Route rules and encoded slashes. Route rules now match paths that contain encoded slashes, so /api%2Fadmin is covered by a /api/** rule.

Changelog

compare changes

Fixes

  • Breaking

    nitro,nuxt: require unrouting 0.3.2

  • nuxt: use unambiguous encoding for island hash

  • nuxt: do not expose details of untrusted thrown errors

  • nuxt: strip trailing slashes in linear time

  • nitro,nuxt: match route rules for paths with encoded slashes

  • nitro,vite: remove windows + virtual dev ssr css links after hydration

  • nuxt: avoid hoisting setup-only values from definePageMeta

  • nuxt: only match hydration modifiers after lazy prefix

  • kit,nitro,nuxt: make emitted tsconfig/types stable across reruns

  • nuxt: render inlined component styles after stylesheet links

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.