nuxt
4.6.4 · 2 Nov 2026MIT3.6M / weekRepositoryHomepagenpmAtom feed
2.18.1 is the newest release of 2.x.
In short
2 breaking18 new23 fixed1 changed10 internal
- Breaking
Minimum supported Node.js version is 12.0.0 (See #8327 for why)
- Breaking
general: Update all dependencies that require node 10.x
Security
3 advisories affect 2.15.0; 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
Highlights
⚠️This release introduces behavior changes. Update with caution ⚠️
- Breaking
Minimum supported Node.js version is 12.0.0 (See #8327 for why)
Using jiti as new require engine with typescript support
Plug and play works out of the box
Allow opting-in to use
postcss@8(See #8546)NOTE: postcss-preset-env is disabled in v8 config as it doesn't support postcss v8 for now, so please install all below dependencies explicitly.
yarn add --dev css-loader@^5.0.0 postcss@^8.1.10 postcss-import@^13.0.0 postcss-loader@^4.1.0 postcss-url@^10.1.1 # or npm i --save-dev css-loader@^5.0.0 postcss@^8.1.10 postcss-import@^13.0.0 postcss-loader@^4.1.0 postcss-url@^10.1.1
Several encoding issues resolved by consistently using ufo
Components updated to v2 (please read migration guide)
When matching a webpack loader by name or query, should use
includesinstead of exact match (example)
Bug Fixes
general: Ignore trailing slash in static payloads manifest
general: Encoding issues with payload paths
general:
trailingSlashand child routes not workingconfig: Prevent invalid css filenames in webpack output
utils:
serializeFunctionfails with certain functionsvue-app: Enable dynamic
publicPathon server-sidevue-app: Static payload fetching bugfixes
vue-app: Check for
Page.optionsbefore looking withinvue-app: Don't remove
req,resandqueryfrom context unless in full static modevue-app: Ensure
link.__prefetchexists before calling itvue-app: Add missing
idattribute tonoopAppvue-app: Scroll-to-top on route changes only
vue-app: Set
pushon router instance rather than prototypevue-app: Do not preserve state when registering client-side dynamic module
vue-app: Add leading slash for payload hydration
server, vue-app: Address encoding issues with query params
dev: Clearnup vue installed plugins from server in dev mode
dev: Resolve module required by create-require in jiti
cli: Disable parallel build behaviour when generating
webpack: Can't resolve absolute url in css
server: Fix HMR issue with serverMiddleware when
router.baseis setbabel: Enable polyfilling of proposal core-js features
vue-app, vue-renderer, utils: Respect
trailingSlashsetting for payloadsgenerator: Ensure static manifest dir exists
generator: Normalize trailing slashes before
extendRoutes
Features
cli: Warn if incompatible node and package versions detected
postcss: Support postcss v8 with explict postcss installation
config, vue-app, vue-renderer: Support dynamic
baseandpublicPathgeneral: Support plug-and-play, typescript runtime and native modules
- Breaking
general: Update all dependencies that require node 10.x
vue-app: Support custom
fetchKeyfor full static generationvue-renderer: Allow adding async attribute to
<script>tags
🇹 Types
Add missing ssr option to config types
vue.configtypes should be optionalAdd missing
redirectoverload toContextinterfaceAdd
enablePreviewto contextAdd missing
loadingScreentype definition
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.