Repository navigation
chore(deps): update devdependency nuxt to v4.6.4 [security] - #273
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
renovate
Bot
force-pushed
the
renovate/npm-nuxt-vulnerability
branch
from
November 9, 2026 15:47
8514407 to
ed0c96c
Compare
renovate
Bot
force-pushed
the
renovate/npm-nuxt-vulnerability
branch
from
November 9, 2026 16:15
ed0c96c to
1c81f84
Compare
renovate
Bot
force-pushed
the
renovate/npm-nuxt-vulnerability
branch
from
November 11, 2026 16:55
1c81f84 to
f34a3de
Compare
renovate
Bot
force-pushed
the
renovate/npm-nuxt-vulnerability
branch
from
November 16, 2026 14:24
f34a3de to
29c9152
Compare
renovate
Bot
force-pushed
the
renovate/npm-nuxt-vulnerability
branch
from
November 17, 2026 03:26
29c9152 to
8707405
Compare
renovate
Bot
force-pushed
the
renovate/npm-nuxt-vulnerability
branch
from
November 20, 2026 20:16
8707405 to
d17cb11
Compare
renovate
Bot
force-pushed
the
renovate/npm-nuxt-vulnerability
branch
from
November 22, 2026 13:39
d17cb11 to
17ed2c4
Compare
renovate
Bot
force-pushed
the
renovate/npm-nuxt-vulnerability
branch
from
November 22, 2026 14:25
17ed2c4 to
e812e50
Compare
renovate
Bot
force-pushed
the
renovate/npm-nuxt-vulnerability
branch
from
November 25, 2026 11:57
e812e50 to
2d3616c
Compare
renovate
Bot
force-pushed
the
renovate/npm-nuxt-vulnerability
branch
from
November 30, 2026 19:12
2d3616c to
7a50f9d
Compare
renovate
Bot
force-pushed
the
renovate/npm-nuxt-vulnerability
branch
from
December 2, 2026 17:32
7a50f9d to
35a2f5c
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
4.6.0→4.6.4Nuxt server islands render
useHeadSafeinput without sanitisationCVE-2026-114133 / GHSA-xfq5-w38q-pc2x
More information
Details
Impact
useHeadSaferestricts head input to an allowlist of safe tags and attributes. For example,bodyAttrsis limited toclassandstyle, event handler attributes are removed, and<script>tags are only kept for JSON types.When
useHeadSafeis called inside a server island (a.server.vuecomponent or page, or a component rendered with<NuxtIsland>), the island renderer serialises the raw input of every head entry into the island response without the option that marks it as safe input.<NuxtIsland>then pushes that input into the page's head as a regular entry, both during server rendering and when hydrating or refetching on the client.As a result, input that
useHeadSafewould normally strip (such asbodyAttrs.onloador executable<script>content) is rendered into the page. If an application passes user-controlled data touseHeadSafeinside a server island, an attacker who controls that data can achieve stored cross-site scripting on the application's origin.Mitigating factors
.server.vuecomponent or page, or enablesexperimental.componentIslandsand renders<NuxtIsland>.useHeadSafeinside a server island.useHeadSafecalled from regular (non-island) components and pages is not affected.Affected versions
nuxt>=3.13.0, when head support for server islands was introduced. Nuxt 2 is not affected.Patches
Fixed in
nuxt@4.6.2. Nuxt 3 reached end of life on 31 July 2026 and will not receive a fix.Patched releases apply Unhead's safe input filtering to
useHeadSafeentries on the server before they are added to the island response, soislandResponse.head(including whatrender:islandhooks see) only contains input thatuseHeadSafeallows.Workarounds
Upgrade to
nuxt@4.6.2. If you cannot upgrade, including on Nuxt 3:useHeadSafewith untrusted input from a regular component or page rather than from inside a server island.useHeadSafeinside a server island.Severity
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Nuxt: Server-side route rules (
redirect,headers,proxy,ssr) are skipped for case-variant paths when routing is case-insensitiveCVE-2026-114132 / GHSA-vjh5-4x84-xrqp
More information
Details
Impact
With the default
router.options.sensitive: false, Nuxt's page router resolves routes case-insensitively, so/Adminrenders the same page as/admin. On the server, however, route rules were resolved with Nitro's route-rule matcher, which matches keys case-sensitively. A request whose path differs from a rule key only in letter case therefore rendered the page with none of that rule applied.Earlier fixes (GHSA-mm7m-92g8-7m47, GHSA-hxvh-4h3w-prp9) case-folded the route rules that the Nuxt app itself reads, such as
appMiddleware. This advisory covers the rules applied on the server:redirect: a rule used to send visitors away from a page, such as'/admin/**': { redirect: '/login' }, was skipped, and the page and its server-fetched data were rendered instead.headers: per-route response headers, including security headers such asContent-Security-PolicyorX-Frame-Options, were not sent.proxy: the request was not proxied.ssr: falseandnoScripts: the page was server-rendered, or shipped scripts, despite the rule.getRouteRules(event)(auto-imported, or fromnuxt/server) andmatchRouteRulesfromnuxt/serverreturned no rules for the case variant.With this configuration,
/admin/secretredirects to/login, but/Admin/secretrenderedapp/pages/admin/secret.vue.Mitigating factors
router.options.sensitive: trueinnuxt.configare not affected, because their pages are only served for the exact case of the route.definePageMeta, or in the page's data fetching are not affected. The issue only affects protections that rely on a server-side route rule matching the request path.Affected versions
nuxt<4.6.2, including all Nuxt 3 releases, and@nuxt/nitro-server<4.6.2.Patches
Fixed in
nuxt@4.6.2. Nuxt 3 reached end of life on 31 July 2026 and will not receive a fix.Nuxt now resolves server-side route rules itself, decoding and case-folding both the rule keys and the request path unless
router.options.sensitiveis set, and applies the result to Nitro'sredirect,headersandproxyhandling, the renderer, and thegetRouteRules/matchRouteRuleshelpers.When routing is case-insensitive, patched releases change some behaviour:
/API/xnow matches a/api/**proxyorheadersrule.The following are not changed by this fix:
cacheandswrresponse caching is attached to server routes by Nitro's router, which matches case-sensitively. A case variant is still rendered with its route rules applied, but its response is not cached.config.jsonor Netlify's_redirectsand_headers) are matched by the platform. Once a request reaches the Nuxt server, the rules are applied as described above.sensitiveis set only inapp/router.options.ts, the server follows thenuxt.configvalue. In that configuration route rules can only apply to more paths, never fewer.Workarounds
Upgrade to
nuxt@4.6.2. If you cannot upgrade, including on Nuxt 3:router: { options: { sensitive: true } }innuxt.config, so pages are only served for the exact case of their route.redirectroute rule, and set security headers for every response rather than per route.Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Nuxt: Dot segments in the request path bypass
server/middlewarepath checks and server route rules on page routesCVE-2026-119200 / GHSA-9v7c-q64q-vv33
More information
Details
Summary
Since
4.6.0, Nuxt resolves.and..segments in the request path, including percent-encoded forms such as%2e, before rendering a page. Nitro's routing, Nitro's route rules andserver/middlewaresee the path with those segments still in place. A request for/%2e/admintherefore renders the page at/admin, while server-side checks keyed on/admindo not apply.Impact
An unauthenticated attacker can bypass server-side controls that match on the request path of a page route.
server/middlewarethat checksevent.path(orevent.node.req.url) is skipped:With this middleware,
/adminreturns 401, but/%2e/admin,/.%2e/adminand/x/%2e%2e/adminreach the middleware withevent.pathset to/./admin,/../adminand/x/../admin, and renderapp/pages/admin.vuealong with the data it fetches during server rendering.Server-side
redirectandheadersroute rules are skipped in the same way, so'/admin/**': { redirect: '/login' }does not redirect/%2e/admin/secret, and per-route security headers such asContent-Security-Policyare not sent.Not affected:
server/apiandserver/routes. Nitro's router does not resolve dot segments, so these requests do not reach the handler.appMiddlewareroute rules and middleware declared withdefinePageMeta, which are matched against the resolved route.3.xand4.0.0to4.5.x, which pass the path to the page router unchanged, so these requests 404.Browsers resolve dot segments before sending a request, so exploitation requires a client that sends the path as written.
Patches
Fixed in
nuxt@4.6.3and@nuxt/nitro-server@4.6.3. A page request whose path contains.or..segments now receives a 404 instead of rendering the page the path resolves to, and route-rule keys and lookup paths have their dot segments resolved, including percent-encoded spellings, before they are compared.Workarounds
Reject dot segments in a server middleware that runs before your other middleware (middleware runs in file name order):
Checking
getRequestURL(event).pathnameinstead ofevent.pathis not a sufficient workaround: it resolves dot segments, but keeps percent-encoding such as%61that the page router decodes. Path checks in server middleware should also account for the page router matching paths case-insensitively unlessrouter.options.sensitiveis set.A reverse proxy or CDN that normalises the request path before forwarding it also removes the mismatch.
Credits
Thanks to @vinzabe, @nikhilagrawalsf (Nikhil Agrawal, Mettle Labs), @0xjunwei and @kq5y, who reported this issue independently.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Nuxt payload URL generation has quadratic cost for repeated slashes in the request path
CVE-2026-128074 / GHSA-r9jc-w898-3fv6
More information
Details
Summary
Nuxt strips trailing slashes from the request path with a regular expression whose cost grows quadratically with the length of a run of consecutive slashes. A single unauthenticated request with a long run of slashes can occupy the server's event loop for a noticeable time, delaying every other request handled by the same process.
Impact
When a page is rendered with payload extraction (any route covered by an
isr,swrorcacheroute rule), Nuxt builds the_payload.jsonURL from the raw request path. A path such as/blog/afollowed by 16,000 slashes andx, which fits within Node's default header size limit, takes roughly 0.1 to 0.4 seconds of synchronous CPU time per request, depending on hardware. Concurrent requests to the same process wait for it to finish, so a modest request rate can keep a process saturated.An app is affected if it uses Nuxt 4.6.0 or later with server-side rendering and has a route rule like:
The same pattern is also reachable through the opt-in
experimental.early404option, for any request path.Apps without
isr,swrorcacheroute rules and withoutexperimental.early404are not affected, nor are fully prerendered or client-only apps. The cost is bounded by the maximum request path length, so a reverse proxy with a smaller header limit reduces it further. There is no confidentiality or integrity impact.Patches
Fixed in
nuxt4.6.4. Trailing slashes are now removed with a linear scan instead of a regular expression.Workarounds
Reject request paths containing repeated slashes before they reach the renderer, for example at the reverse proxy or with a server middleware:
If you use
experimental.early404, you can also disable it until you upgrade.Credits
Thanks to cryptofox9 for reporting this issue.
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Nuxt: Colliding island props can share one
/__nuxt_islandpath (incomplete fix for CVE-2026-46342)CVE-2026-128076 / GHSA-hf59-9xwc-2g4p
More information
Details
Summary
The fix for CVE-2026-46342 (GHSA-g8wj-3cr3-6w7v) binds each
/__nuxt_island/<Name>_<hash>.jsonpath to its props by hashing the(name, props, context, source)tuple. That hash was computed overohash's serialization, which does not escape quotes inside strings or delimiters inside keys, so two different prop objects can produce the same hash. A request with crafted props can therefore pass validation for another island's path and render different content at that path.Impact
For example, these two prop objects serialize identically and share one island path:
This reopens the scenarios described in GHSA-g8wj-3cr3-6w7v:
nuxt generate/ prerendering. Nuxt caches prerendered island responses by path. If the crawler reaches a link to the colliding URL (for example in user-submitted content included in the build) before it renders the page that uses the legitimate props, the colliding response is written into the generated page./__nuxt_island/*by path only, ignoring the query, can be primed with the colliding response.An attacker has to construct props that collide with a specific legitimate tuple, which in practice means at least part of that tuple is a string they control (for example a stored comment or profile field passed as a prop). Where a prop reaches an unsafe HTML sink in the island (
v-html,innerHTML, a renderer treating a prop as HTML), the substituted response can execute script in the site's origin. Without such a sink, the impact is content substitution.Applications are not affected if they do not use server components or
<NuxtIsland>, or if no island receives attacker-influenced string props. Server-rendered responses that are not cached by path alone are also unaffected.Patches
Fixed in
nuxt@4.6.4and@nuxt/nitro-server@4.6.4. The island hash is now computed over a canonical JSON encoding of the tuple, in which strings and keys are escaped, so different props can no longer produce the same hash.Island hashes change as a result. Clients that build island URLs themselves should use the exported
getIslandHashrather than hashing withohashdirectly.Nuxt 3 has reached end of life and will not receive a fix. Upgrade to Nuxt 4.
Workarounds
/__nuxt_island/*on the full query string, not on the path alone.v-htmlor other HTML sinks without sanitisation./__nuxt_island/in crawled pages, for example by excluding that prefix withnitro.prerender.ignore:Credits
Thanks to rat5ak for reporting this issue.
Severity
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Nuxt: Incomplete fix for GHSA-6gq8-jgmh-3ffp: an encoded slash (
%2F) in the request path bypasses route rules on catch-all page routesCVE-2026-128071 / GHSA-f3x9-2chm-73c8
More information
Details
Summary
Nuxt matches route rules against the request path with encoded slashes (
%2F) left encoded, while the page router decodes them into route params. A request that spells a slash as%2Fcan therefore render a page through a catch-all route without the route rules configured for the path it resolves to. The fix for GHSA-6gq8-jgmh-3ffp deliberately left reserved escapes such as%2Fencoded, so it did not cover this form.Impact
An unauthenticated attacker can bypass route rules that protect paths served by a catch-all page route, or by a custom route whose param can span several segments.
With
app/pages/docs/[...slug].vue,/docs/internal/guiderunsauth, but/docs/internal%2Fguiderenders the same page without runningauthand without the header. With a rootapp/pages/[...slug].vue,/admin%2Fsecretis rendered instead of redirected.The rules skipped include server-side
redirect,headers,proxy,ssrandnoScripts, andappMiddleware,appLayoutandredirectas matched in the app during server rendering and client navigation.getRouteRulesreturns the same incomplete result.Whether the page then shows protected content depends on how it reads the route:
definePageMeta({ path: '/docs/:path(.*)' }),route.params.pathisinternal/guidefor both requests.[...slug].vue),route.params.slugis['internal/guide']instead of['internal', 'guide'], so a page that joins the segments (slug.join('/')) to load content loads the protected resource.route.pathkeeps the encoding (/docs/internal%2Fguide), so a page that loads content byroute.pathdoes not resolve it.Not affected:
/docs%2Finternaldoes not matchapp/pages/docs/internal.vue.server/apiandserver/routes. As far as we can tell, Nitro matches these against the same path as its route rules, so a handler and the rules for it agree.Browsers send
%2Fin a path as written, so a plain link is enough to reach the page.Patches
Fixed in
nuxt@4.6.4, together with@nuxt/nitro-server@4.6.4and@nuxt/vite-server@4.6.4, which it depends on. Route rules are now resolved for both the request path and the path with each%2Fread as a separator, and the rules matched by either apply. Nuxt 3 has reached end of life and will not receive a fix.Workarounds
Reject page requests whose path contains an encoded slash in a server middleware:
This also rejects legitimate uses, such as an API route that takes a scoped package name (
@scope%2Fname) as a param; narrow the check to the path prefixes your route rules protect if you need those.A reverse proxy or CDN that rejects or decodes encoded slashes before forwarding the request also removes the mismatch.
Credits
Thanks to Riahi Foudhil for reporting this issue.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Nuxt exposes the message and data of unhandled errors thrown during server rendering
CVE-2026-128075 / GHSA-96x6-fvhx-49hg
More information
Details
Summary
When a page, plugin or route middleware throws an error that is not an HTTP error, Nuxt wraps it with
createErrorbefore rendering the error page. The wrapped error was treated as one the app raised deliberately, so in production itsmessageanddatawere sent to the client in the error page payload (__NUXT_DATA__) and in JSON error responses. For a failed$fetch, that is the URL that was requested (including its query string) and the body of the upstream error response.Impact
An application is affected if server-rendered code lets an error with sensitive details reach the error page, for example:
Anyone who can make the request fail (for example by requesting an id the upstream service rejects) receives
[GET] "http://users.internal/users/1?token=...": 502and the upstream response body. This happens regardless of what a customerror.vuerenders, because the details are part of the payload. With the default configuration, the HTTP status line is not affected.The same applies to any other error thrown during server rendering, such as a database driver error whose message names an internal host.
Errors created deliberately with
createError(orshowError) are not affected: theirmessageanddataare meant for the client. Errors returned byuseFetchanduseAsyncDataare also unchanged, as they are part of the payload by design. Server routes (server/api) are not affected.Patches
Fixed in
nuxt@4.6.4. Nuxt now marks any thrown value that is not already an HTTP error asunhandled, so the error page and JSON responses receive its status and a generic message. As a result, the error page no longer shows the message of an error thrown withthrow new Error(...)in production; throw acreateErrorwith what the client may see instead.Nuxt 3 has reached end of life and will not receive a fix. Upgrade to Nuxt 4, or apply the workaround below.
Workarounds
Catch errors from server-side requests and rethrow them with only the details the client may see:
Alternatively, add a Nitro plugin that hides the details of errors Nuxt wrapped. This also hides the details of a
createErrorcalled with anError(or with acause):If secrets such as tokens in upstream URLs may have been exposed this way, rotate them.
Credits
Thanks to abhijit_dave for reporting this through the Vercel HackerOne program.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
nuxt/nuxt (nuxt)
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)Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.