Repository navigation
chore(nuxt): Update dependency @nuxt/schema to v4.6.4 [SECURITY] - #11142
renovate[bot] wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedBot user detected. Ask an organization administrator to verify that this bot has an active assigned CodeRabbit review seat. See the seat-assignment guide. After the seat is confirmed, request a review again.
|
|
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/electron
@clerk/electron-passkeys
@clerk/eslint-plugin
@clerk/expo
@clerk/expo-biometrics
@clerk/expo-google-signin
@clerk/expo-native-components
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/mosaic
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
4.5.2→4.6.4Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Nuxt dev server serves files from a parent directory with a stray lockfile or workspace file
CVE-2026-128070 / GHSA-mjrq-cffv-q4qc
More information
Details
Summary
Nuxt can pick a parent directory that does not declare a workspace as its default
workspaceDir: the farthest directory with a lockfile when the project is not inside a git repository, or the farthest directory with apnpm-workspace.yamlordeno.jsonfile, even one that only holds settings. The Vite dev server allows/_nuxt/@fs/requests for any file underworkspaceDir. A stray lockfile or settings file in a parent directory, such as the home directory, therefore lets anyone who can reach the dev server read files in that directory and everything below it.Impact
This affects the development server only; production builds are not affected. All of the following have to hold:
package-lock.json,pnpm-lock.yaml,yarn.lock,bun.lockand similar), while the project is not inside a git repository and has no workspace file (pnpm-workspace.yaml,turbo.json,lerna.jsonand similar) above it. Runningnpm installonce in the home directory is enough to create one there.pnpm-workspace.yamlwithout apackageslist (for example one that only holds pnpm settings such asonlyBuiltDependencies), or adeno.jsonordeno.jsoncwithout aworkspacefield. This applies even if the project is inside a git repository.nuxt dev --host,nuxt dev --tunnel, a published container port, or a proxy onto the dev port). The default localhost bind limits this to local processes, which can usually read the same files directly.For example, with
~/package-lock.jsonand a project at~/projects/appthat has no.gitdirectory,nuxt dev --hostservesGET /_nuxt/@fs/<home>/.ssh/id_ed25519with status 200. Any file in the home directory that is not covered by Vite'sserver.fs.denylist can be read this way, including SSH keys, cloud credentials and the Nuxt DevTools auth token in~/.nuxt/devtools/dev-auth-token.txt.No browser is involved: a plain HTTP client is enough. A web page on another origin cannot read the response, and DNS rebinding is rejected by Vite's host check.
Projects whose parent directories contain none of these files are not affected, nor are projects inside a git repository whose only lockfile is their own. Nuxt 3.5.0 and later are affected.
Patches
Fixed in
@nuxt/schema4.6.4, whichnuxt4.6.4 depends on. A parent directory now only becomes the defaultworkspaceDirif it declares a workspace: apnpm-workspace.yamlwithpackages, adeno.jsonordeno.jsoncwithworkspace, alerna.json,turbo.jsonorrush.json, apackage.jsonwithworkspaces, or a git repository. A lockfile or a settings file alone no longer widens the dev server'sserver.fs.allowlist. If your monorepo root is not detected this way, setworkspaceDirinnuxt.config.ts. Nuxt 3 has reached end of life and will not receive a fix.Workarounds
Set
workspaceDirexplicitly innuxt.config.tsto the project root (or to the real monorepo root), or remove the stray lockfile or settings file from the parent directory. Do not expose the dev server to untrusted networks. If the dev port was reachable from an untrusted network while this layout was in place, treat files in the parent directory as exposed and rotate credentials such as SSH keys and cloud tokens.Credits
Nuxt thanks @superboy-zjc for the report.
Severity
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
nuxt/nuxt (@nuxt/schema)
v4.6.4Compare Source
These probably won't affect most apps, but it's worth flagging anyway:
createError. Everything else is stripped.Hostchecks. Webpack and rspack dev servers now reject requests with an unexpectedHostheader, as Vite already does. If you use a custom hostname or tunnel, you'll need to add it to the newdevServer.allowedHostsoption.workspaceDirdetection. WhenworkspaceDirisn't set, Nuxt now only widens it pastrootDirto an explicit workspace root or the closest git repository.cache,swrandisrroute rules now only cacheGETandHEADrequests, and no longer store responses that set a cookie or sendCache-Control: privateorno-store. Wildcardproxyandredirectrules also reject requests whose resolved target would leave the rule's scope./api%2Fadminis covered by a/api/**rule.👉 Changelog
compare changes
🩹 Fixes
768d21368)bf31e4cd8)1b13c6981)75c12c6fb)6f1b93c64)1e7dfa6a7)8c56b71e4)97424dd21)8c11d965d)3c9645326)f8d64c9aa)devServer.allowedHosts(3e1c7964e)084396b10)89d3306d1)x-forwarded-protoin when opted-in (#36818)nuxt/serverhandler (#36817)24d75659d)definePageMeta(#36751)📖 Documentation
1225ca7ff)🏡 Chore
c852d871f)✅ Tests
7528c3ce6)545b5934c)40f72b40b)861e153dd)🤖 CI
d093c88b1)4b90681bd)6428070e0)bc17c03d1)❤️ Contributors
v4.6.3Compare Source
👉 Changelog
compare changes
🚨 Security fixes
63299e13c) - GHSA-x287-wcfc-q46cc7e204ec6) - GHSA-648h-gw55-m2g716dfdc2a9) - GHSA-3xf4-9g3c-4h4w440250d97) - GHSA-9v7c-q64q-vv33b20372dbe) - GHSA-2fxj-c3j7-rr69🔥 Performance
fs.allow(#36702)🩹 Fixes
navigateTowhile middleware runs (#36650)_asyncData(#36709)import.metakeys + limit replace to client dev (#36703)#appcomposables (#36696)shared/in build cache hash (#36704)rootDir(#36697)updateCallbackDoneof aborted view transition (#36639)sensitive: false(#36708)634cba64c)noScriptswildcard patterns single-segment (fa323db7d)nuxt/schemaaugmentation (#36633)nuxt/*imports (#36632)vite.configfiles (#36628)include(#36627)v-forsources in island renders at render time (#36623)📖 Documentation
build:manifesthook (#36695)4b12d15c9)✅ Tests
NUXT_B4023as main-only (4fd54ff9a)453406999)NUXT_B9006as main-only (e107e0f40)🤖 CI
132698a46)7d228ba4b)bad8c3637)9d47884f3)1d89ad434)🎉 New Contributors
❤️ Contributors
v4.6.2Compare Source
👉 Changelog
compare changes
🩹 Fixes
useHeadSaferules to server island head (493565e99)010f6b43d)f6cfee52c)rawVaporSlotKeyfrom vue (#36614)experimental.typescriptPlugin(#36561)AnyFetchPathfor emitted server route types (#36610)nuxt/appto the app's runtime (#36587)appMiddleware(#36565)render:responselisteners (#36583)vueto its bundler build in dev (#36569)/@id/in dev (#36549)nitroAutoImportsis off (#36548)💅 Refactors
📖 Documentation
H(TTP)toHTTP(#36559)proxyroute rule (4a529be68)definePluginanddefineNitroPluginin server plugin tip (64b8e0334)e551df267)7499a445b)🏡 Chore
3110d6947)fb01db4eb)nuxt/appentry shim from root typecheck (c65cef3a8)test:engines(6ce412822)#build/server-routesstub via root tsconfig paths (8235dd605)✅ Tests
ca784deb7)🤖 CI
inlinedDependenciesin autofix (4b6da3a29)917bdf218)🎉 New Contributors
❤️ Contributors
v4.6.1Compare Source
👉 Changelog
compare changes
🔥 Performance
cffb182d6)🩹 Fixes
baseURLwhen fetch response type is named (#36523)nitropack/typesdeclarations under nodenext (242e1971e)falseinsetPageLayouttypes (#36506)Serializeobject types with JSON (#36503)publishConfigconfig export extension (64fa191cb)RequestEventtonuxtdev server handlers (e6beceea2)$fetchwith nuxt'sTypedFetch(#36492).wranglerdirectory (#36487)BroadcastChannelthrows (#36480)nuxtdev server handler variant (452052793)21657c6fc)unheadfrom nuxt in server bundle (dc1e2d6e6)💅 Refactors
package-manager-detectorworkspace + deno handling (1563a6d25)📖 Documentation
nuxt/serverscope (7c36a1352)🏡 Chore
CLAUDE.md(#36462)bdf98e936)787d0d980)✅ Tests
30742865c)1f22a114d)🤖 CI
latest(682605dba)3b8853489)🎉 New Contributors
❤️ Contributors
v4.6.0Compare Source
📣 Some news
🖥️ Nuxt CLI v4
Alongside the release of Nuxt v4.6, today also brings a new major release of the Nuxt CLI:
@nuxt/cliv4. It ships as a dependency ofnuxt, so you'll get it automatically when you upgrade.Most of what's new is in
nuxt dev:nuxt.configkeys changed, where the time went during a slow start or build, and how long each module took to set upmy-bad(see below), powering things like automatically reloading when a syntax error innuxt.config.tsis fixed.nuxt/, which lets a secondnuxt dev(say, one started by an agent) take over or defer to the one you started, and powers newnuxt curlandnuxt taskcommands that talk to the running serverThere's also a new
nuxt docs "<query>"search, andnuxt preview --takeovercan replace a running preview server. And in generalnuxt/cliis a lot smaller and starts a lot faster:@nuxt/cliinstall size@nuxt/clidependenciesnuxt dev: first paintnuxt dev: port boundnuxt dev: memory at rest (Linux)Although this is a major version, none of the changes should be breaking for Nuxt v4 users: we require Node.js v22.21+, v24.11+ or v26+, we drop
nuxt initand only supportnpm create nuxt@latest, and Nuxt 2 and@nuxt/bridgeare no longer supported.👉 Check out the full Nuxt CLI v4 release notes for everything that's changed.
💡 A server-agnostic Nuxt
The biggest thing about this release is our move towards making Nuxt server-agnostic.
I feel that freedom of choice is very much a fundamental value of the web, and one that unites the whole Nuxt team.
You can use
pages/(with vue-router) or not. You can use Vite, webpack or Rspack to bundle your code. You can pick from dozens of providers to deploy to, pick any image or font provider, choose any database adapter. In every case, the framework is the same.The server side was different.
#appcomposables imported h3 types, server code imported fromh3andnitropack, and every module that touched the server was tied to whichever major version of those packages Nuxt happened to depend on.This has become particularly clear as we have been upgrading to new majors of h3 and nitro, which ship breaking changes with a cascading effect throughout the whole ecosystem.
👉 This release changes that.
Alongside explicitly defining our public API in
nuxt/kit(which now does not refer to external packages), Nuxt now specifies our own types for the request event, route rules and typed$fetch, and we expose an import surface (nuxt/server) for the server utilities that will be needed by most apps.This is the culmination of work we started almost a year ago, making it possible to use any server builder with Nuxt, not just Nitro (#33462).
Of course, under the hood,
nuxt/serveris still powered by Nitro by default - though we are also announcing a second, experimental implementation,@nuxt/vite-server, which allows pure-Vite server builds using the Vite Environment API.🌟 We see a number of key benefits for
nuxt/server.nuxt/serveron 4.6 runs unchanged there, so a module can ship one file for both./appand/server- and the bundler + server that you ultimately want to build your app.... and there are a number of other benefits too, from a single type surface to being able to iterate more quickly on features.
Finally, I want to say a special thank-you to @pi0, whose relentless focus on server agnosticism and work on h3, Nitro and web-standard server primitives over the last few years is what makes a portable
RequestEventpossible at all. Thank you, Pooya. ❤️Almost every feature in this release is already in the Nuxt 5 branch, and most of the remaining Nuxt 5 defaults can be tested today with
future.compatibilityVersion: 5(more details below!).👀 Highlights
🤷 If you've read this far I'm afraid I have bad news for you: there's a lot more still to say! Nuxt 4.6 is one of our biggest minor releases, with over 420 commits since v4.5.2.
... so, you might want to grab a coffee! ☕️
🧩
nuxt/serverIt has been asked for for a long time, and it now exists (#36275)!
nuxt/serveris a new import source for server code: handlers, middleware and utilities - a complement tonuxt/app. Wherenuxt/appis for the part of your application that also runs in the browser,nuxt/serveris for the part that only runs on the server.The utilities use web standards and are typed against a portable
RequestEvent:Under
@nuxt/nitro-serverthey are backed by Nitro and h3, but you never import from either.So the same handler runs under Nitro v2, Nitro v3 or
@nuxt/vite-server, and a module that imports fromnuxt/serverdoesn't need a peer dependency onh3ornitropack.We think this will make a big difference in smoothing out the upgrade to Nuxt v5 and Nitro v3.
There is a typing benefit too. We no longer hoist h3 or Nitro types into your app to type
useRequestEvent,$fetchor route rules, which removes a source of type conflicts when versions differ (#36212, #36214, #36293).The surface is small, and covers what published modules and user code typically need:
defineEventHandler,createError/isNuxtError, request URL, headers, query, body (plain and validated with any Standard Schema library or a function), cookies, redirects, response status,getRouterParam(s),getRequestIP,handleCors,getRouteRules,useRuntimeConfig,useAppConfigand sessions.We encourage you to use web APIs (
event.req.headers, for example), or raise an issue if there's functionality you're missing fromnuxt/server🙏If you do need to step outside
nuxt/serverfor a particular handler, don't worry! Nothing has been taken away: importdefineEventHandlerand the helpers you need fromh3ornitropack/runtimeas before, and that handler works exactly as it did on Nuxt 4.5.A few helpers also behave differently from their h3 v1 namesakes:
sendRedirectreturns the response rather than sending it,createErrortakesstatusandstatusText, and response headers are set throughevent.res.headers. The upgrade guide has a table of the differences.Nothing in this release requires a migration. But if you have server code you'd like to make portable ahead of Nuxt 5, this is the best way.
👉 Read the server imports guide.
🔐
appSecretand sessionsNuxt now has a root application secret:
runtimeConfig.appSecret, set withNUXT_APP_SECRET(#35874, thanks to @onmax). Modules and server features derive purpose-specific secrets from it withderiveSecret(purpose), soNUXT_APP_SECRETis the only secret you need to configure.In development Nuxt generates and persists one if none is configured (and warns the first time a derived secret is used). Builds never generate one.
The first thing to use it is a set of session helpers in
nuxt/server(#36358). Sessions are sealed into a cookie with iron, so there's no server-side storage to configure:🎯 Typed
$fetch, rebuilt$fetchanduseFetchhave been typed from your server routes for a long time. But the types were derived from Nitro'sInternalApiinterface, and past a few hundred routes they hit TypeScripConfiguration
📅 Schedule: (in timezone GMT)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.