Nuxt vulnerabilities
Historical data is still loading (NVD, last 30 days): counts will keep growing over the next hours. See source status.
In the last 30 days, 12 Nuxt vulnerabilities were published: 0 critical, 0 actively exploited. Most common weakness: CWE-436.
CVSS score: 7.5 Severity: High Identifier: CVE-2026-102650GHSA-XXRH-5HGG-GJ4H Nuxt Content: Unauthenticated SQLite Function DoS via Content Query API Package: @nuxt/content fixed in 3.15.2 Published Published
Nuxt Content is the file-based CMS for Nuxt applications, powered by Markdown and Vue components. From 3.0.0 until 3.15.2, the unauthenticated POST /__nuxt_content/:collection/query endpoint accepts an attacker-controlled sql field in src/runtime/api/query.post.ts and permits expensive SQLite expressions. Version 3.0.0 performed no query validation; in affected releases using assertSafeQuery in src/runtime/internal/security.ts, the reported validation gap rejects a short list of SQL command keywords in WHERE clauses but permits function calls including randomblob(), zeroblob(), hex(), and length(). The query reaches the synchronous better-sqlite3 sink in src/runtime/internal/database.server.ts, allowing a single remote request to consume substantial CPU and memory while blocking the Node.js event loop and all concurrent request handling. Fully static prerendered deployments that do not expose the server endpoint are not affected. This issue is fixed in version 3.15.2.
- Exploitation
- No known exploitation
- EPSS
- 0.63% chance of exploitation in the next 30 days, higher than 44.6% of CVEs
- CVSS
- 7.5 out of 10 · source NVD (github.com)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Versions
- >= 3.0.0, < 3.15.2 · fixed in 3.15.2
- Weakness
- CWE-400, CWE-770
- Linked via
- product name
- Sources
- NVD · GitHub
- Dates
- published Nov 6, 2026 · first seen here 3 min ago
CVSS score: 6.9 Severity: Medium Identifier: CVE-2026-128074GHSA-R9JC-W898-3FV6 Nuxt payload URL generation has quadratic cost for repeated slashes in the request path Package: nuxt fixed in 4.6.4 Published Published
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, swr or cache route rule), Nuxt builds the _payload.json URL from the raw request path. A path such as /blog/a followed by 16,000 slashes and x, 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:
export default defineNuxtConfig({
routeRules: {
'/blog/**': { swr: true },
},
})
The same pattern is also reachable through the opt-in experimental.early404 option, for any request path.
Apps without isr, swr or cache route rules and without experimental.early404 are 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 nuxt 4.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:
// server/middleware/reject-repeated-slashes.ts
export default defineEventHandler((event) => {
if (event.path.split('?')[0]!.includes('//')) {
throw createError({ statusCode: 404 })
}
})
If you use experimental.early404, you can also disable it until you upgrade.
Credits
Thanks to cryptofox9 for reporting this issue.
- Exploitation
- No known exploitation
- EPSS
- 0.51% chance of exploitation in the next 30 days, higher than 36.4% of CVEs
- CVSS
- 6.9 out of 10 · source GitHub
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N - Versions
- >= 4.6.0, < 4.6.4 · fixed in 4.6.4
- Weakness
- CWE-1333
- Linked via
- ecosystem package
- Sources
- GitHub
- Dates
- published Nov 16, 2026 · first seen here 4 min ago
CVSS score: 6.5
Severity: Medium
Identifier: CVE-2026-128071GHSA-F3X9-2CHM-73C8
Nuxt: Incomplete fix for GHSA-6gq8-jgmh-3ffp: an encoded slash (%2F) in the request path bypasses route rules on catch-all page routes
Package: nuxt fixed in 4.6.4
Published Published
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 %2F can 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 %2F encoded, 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.
export default defineNuxtConfig({
routeRules: {
'/docs/internal/**': { appMiddleware: 'auth', headers: { 'X-Frame-Options': 'DENY' } },
'/admin/**': { redirect: '/login' },
},
})
With app/pages/docs/[...slug].vue, /docs/internal/guide runs auth, but /docs/internal%2Fguide renders the same page without running auth and without the header. With a root app/pages/[...slug].vue, /admin%2Fsecret is rendered instead of redirected.
The rules skipped include server-side redirect, headers, proxy, ssr and noScripts, and appMiddleware, appLayout and redirect as matched in the app during server rendering and client navigation. getRouteRules returns the same incomplete result.
Whether the page then shows protected content depends on how it reads the route:
- With a route such as
definePageMeta({ path: '/docs/:path(.*)' }),route.params.pathisinternal/guidefor both requests. - With a repeatable catch-all (
[...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:
- Static page routes and params that match a single segment.
/docs%2Finternaldoes not matchapp/pages/docs/internal.vue. - API handlers in
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 %2F in 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.4 and @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 %2F read 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:
// server/middleware/encoded-slash.ts
export default defineEventHandler((event) => {
if (/%2f/i.test(event.path.split('?')[0])) {
throw createError({ statusCode: 404 })
}
})
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.
- Exploitation
- No known exploitation
- EPSS
- 0.37% chance of exploitation in the next 30 days, higher than 23.1% of CVEs
- CVSS
- 6.5 out of 10 · source GitHub
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N - Versions
- >= 4.0.0, < 4.6.4 · fixed in 4.6.4
- Weakness
- CWE-436, CWE-863
- Linked via
- ecosystem package
- Sources
- GitHub
- Dates
- published Nov 16, 2026 · first seen here 4 min ago
CVSS score: 6.5
Severity: Medium
Identifier: CVE-2026-128077GHSA-R99W-JH2X-3MG9
Nuxt: Incomplete fix for GHSA-9v7c-q64q-vv33: a leading // in the request path bypasses server/middleware path checks and server route rules on page routes
Package: @nuxt/nitro-server fixed in 4.6.4
Published Published
Summary
Since 4.6.0, Nuxt parses a request path that starts with // as a URL with a host before rendering a page, so //x/admin renders the page at /admin. Nitro's routing, Nitro's route rules and server/middleware see the path as //x/admin, so server-side checks keyed on /admin do not apply. The fix for GHSA-9v7c-q64q-vv33 in 4.6.3 covered dot segments but not this form.
Impact
An unauthenticated attacker can bypass server-side controls that match on the request path of a page route.
A route-scoped server handler is skipped:
// nuxt.config.ts
export default defineNuxtConfig({
serverHandlers: [{ route: '/admin', middleware: true, handler: '~~/server/admin-guard.ts' }],
})
// server/admin-guard.ts
export default defineEventHandler((event) => {
if (!isAuthenticated(event)) {
throw createError({ statusCode: 401 })
}
})
With this handler, /admin returns 401, but //x/admin and ///x/admin render app/pages/admin.vue along with the data it fetches during server rendering. server/middleware that checks event.path.startsWith('/admin') is skipped in the same way.
Server-side redirect and headers route rules are also skipped, so '/admin/**': { redirect: '/login' } does not redirect //x/admin/secret, and per-route security headers such as Content-Security-Policy are not sent.
Browsers send a path such as //x/admin as written, so a plain link is enough to reach the page.
Not affected:
- API handlers in
server/apiandserver/routes, which Nitro does not match for these paths. appMiddlewareroute rules and middleware declared withdefinePageMeta, which are matched against the resolved route.- Nuxt
3.xand4.0.0to4.5.x, which pass the path to the page router unchanged, so these requests 404.
Patches
Fixed in @nuxt/nitro-server@4.6.4, which nuxt@4.6.4 depends on. The renderer now uses the request path exactly as Nitro matched it, so a path starting with // no longer resolves to a different page.
Workarounds
Reject request paths that start with // in a server middleware:
// server/middleware/double-slash.ts
export default defineEventHandler((event) => {
if (event.path.startsWith('//')) {
throw createError({ statusCode: 404 })
}
})
A reverse proxy or CDN that merges repeated slashes before forwarding the request also removes the mismatch.
Credits
Nuxt thanks @kq5y for reporting this issue.
- Exploitation
- No known exploitation
- EPSS
- 0.37% chance of exploitation in the next 30 days, higher than 23.1% of CVEs
- CVSS
- 6.5 out of 10 · source GitHub
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N - Versions
- >= 4.6.0, < 4.6.4 · fixed in 4.6.4
- Weakness
- CWE-436, CWE-863
- Linked via
- product name
- Sources
- GitHub
- Dates
- published Nov 13, 2026 · first seen here 3 min ago
CVSS score: 6.5
Severity: Medium
Identifier: CVE-2026-119200GHSA-9V7C-Q64Q-VV33
Nuxt: Dot segments in the request path bypass server/middleware path checks and server route rules on page routes
Package: nuxt fixed in 4.6.3
Published Published
Nuxt is an open-source web development framework for Vue.js. From 4.6.0 until 4.6.3, Nuxt resolves literal or percent-encoded dot segments before rendering a page while Nitro routing, server/middleware checks, and server route rules evaluate the unresolved path. A request such as /%2e/admin can therefore render app/pages/admin.vue and its server-rendered data while checks keyed to /admin, redirects, or per-route security headers do not apply. API handlers, appMiddleware, Nuxt 3, and Nuxt 4.0.0 through 4.5.x are not affected, and exploitation requires a client that sends dot segments without browser normalization. This issue is fixed in version 4.6.3.
- Exploitation
- No known exploitation
- EPSS
- 0.40% chance of exploitation in the next 30 days, higher than 25.4% of CVEs
- CVSS
- 6.5 out of 10 · source NVD (github.com)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N - Versions
- >= 4.6.0, < 4.6.3 · fixed in 4.6.3
- Weakness
- CWE-41, CWE-436, CWE-863
- Linked via
- ecosystem package
- Sources
- NVD · GitHub
- Dates
- published Oct 29, 2026 · first seen here 3 min ago
CVSS score: 5.9 Severity: Medium Identifier: CVE-2026-128070GHSA-MJRQ-CFFV-Q4QC Nuxt dev server serves files from a parent directory with a stray lockfile or workspace file Package: @nuxt/schema fixed in 4.6.4 Published Published
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 a pnpm-workspace.yaml or deno.json file, even one that only holds settings. The Vite dev server allows /_nuxt/@fs/ requests for any file under workspaceDir. 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:
- A parent directory contains either:
- a lockfile (
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. - a
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.
- a lockfile (
- The dev server is reachable from the network (
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.json and a project at ~/projects/app that has no .git directory, nuxt dev --host serves GET /_nuxt/@fs/<home>/.ssh/id_ed25519 with status 200. Any file in the home directory that is not covered by Vite's server.fs.deny list 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/schema 4.6.4, which nuxt 4.6.4 depends on. A parent directory now only becomes the default workspaceDir if it declares a workspace: a pnpm-workspace.yaml with packages, a deno.json or deno.jsonc with workspace, a lerna.json, turbo.json or rush.json, a package.json with workspaces, or a git repository. A lockfile or a settings file alone no longer widens the dev server's server.fs.allow list. If your monorepo root is not detected this way, set workspaceDir in nuxt.config.ts. Nuxt 3 has reached end of life and will not receive a fix.
Workarounds
Set workspaceDir explicitly in nuxt.config.ts to 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.
- Exploitation
- No known exploitation
- EPSS
- 0.43% chance of exploitation in the next 30 days, higher than 29.0% of CVEs
- CVSS
- 5.9 out of 10 · source GitHub
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Versions
- >= 3.5.0, < 4.6.4 · fixed in 4.6.4
- Weakness
- CWE-552
- Linked via
- product name
- Sources
- GitHub
- Dates
- published Nov 13, 2026 · first seen here 3 min ago
CVSS score: 5.9 Severity: Medium Identifier: CVE-2026-119198GHSA-X287-WCFC-Q46C Nuxt dev server arbitrary file read through client error reports Package: @nuxt/vite-builder fixed in 4.6.3 Published Published
Nuxt is an open-source web development framework for Vue.js. From 4.6.0 until 4.6.3, a client with TCP access to an exposed Nuxt development server can send a nuxt:dev:client-error event over the HMR socket with an absolute file path at the end of its message. The development server reads that file while building the client error report and returns its contents through the error overlay, development error channel, and terminal report, bypassing Vite's server.fs allow list. The default localhost binding limits remote exposure, cross-origin browser requests are rejected, production builds and Nuxt 3 are not affected, and no browser interaction is required. This issue is fixed in version 4.6.3.
- Exploitation
- No known exploitation
- EPSS
- 0.47% chance of exploitation in the next 30 days, higher than 32.5% of CVEs
- CVSS
- 5.9 out of 10 · source NVD (github.com)
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Versions
- >= 4.6.0, < 4.6.3 · fixed in 4.6.3
- Weakness
- CWE-73
- Linked via
- product name
- Sources
- NVD · GitHub
- Dates
- published Oct 29, 2026 · first seen here 3 min ago
CVSS score: 5.9 Severity: Medium Identifier: CVE-2026-119199GHSA-648H-GW55-M2G7 Nuxt dev server exposes private runtime config through the Nitro dev bundle Package: @nuxt/vite-builder fixed in 4.6.3 Published Published
Nuxt is an open-source web development framework for Vue.js. From 3.0.0 until 4.6.3, the Nuxt development server can expose the Nitro 2 development bundle at <buildDir>/dev/index.mjs through Vite file serving when the server is reachable over HTTP. Nitro inlines private runtimeConfig values resolved at build time into that bundle, including secrets configured in nuxt.config, and Nuxt 4.6.0 and later also inline the generated development appSecret. The default localhost binding limits remote exposure, production builds and Nitro 3 are not affected, and runtime configuration supplied only through NUXT_* environment variables at server startup is not inlined. This issue is fixed in version 4.6.3.
- Exploitation
- No known exploitation
- EPSS
- 1.3% chance of exploitation in the next 30 days, higher than 71.1% of CVEs
- CVSS
- 5.9 out of 10 · source NVD (github.com)
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Versions
- >= 3.0.0, < 4.6.3 · fixed in 4.6.3
- Weakness
- CWE-200, CWE-538, CWE-552
- Linked via
- product name
- Sources
- NVD · GitHub
- Dates
- published Oct 29, 2026 · first seen here 3 min ago
CVSS score: 5.3 Severity: Medium Identifier: CVE-2026-128075GHSA-96X6-FVHX-49HG Nuxt exposes the message and data of unhandled errors thrown during server rendering Package: nuxt fixed in 4.6.4 Published Published
Summary
When a page, plugin or route middleware throws an error that is not an HTTP error, Nuxt wraps it with createError before rendering the error page. The wrapped error was treated as one the app raised deliberately, so in production its message and data were 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:
<script setup lang="ts">
const route = useRoute()
// the upstream error body, and the token in the URL, reach the client if this request fails
await $fetch(`http://users.internal/users/${route.params.id}?token=${useRuntimeConfig().usersToken}`)
</script>
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=...": 502 and the upstream response body. This happens regardless of what a custom error.vue renders, 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 (or showError) are not affected: their message and data are meant for the client. Errors returned by useFetch and useAsyncData are 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 as unhandled, 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 with throw new Error(...) in production; throw a createError with 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:
try {
await $fetch(url)
} catch (error) {
throw createError({ statusCode: 502, statusMessage: 'Upstream request failed' })
}
Alternatively, add a Nitro plugin that hides the details of errors Nuxt wrapped. This also hides the details of a createError called with an Error (or with a cause):
// server/plugins/hide-error-details.ts
export default defineNitroPlugin((nitroApp) => {
nitroApp.hooks.hook('error', (error) => {
const cause = (error as { cause?: unknown }).cause
if (cause instanceof Error && !(cause.constructor as { __h3_error__?: boolean }).__h3_error__) {
Object.assign(error, { unhandled: true, data: undefined })
}
})
})
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.
- Exploitation
- No known exploitation
- EPSS
- 0.40% chance of exploitation in the next 30 days, higher than 26.4% of CVEs
- CVSS
- 5.3 out of 10 · source GitHub
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Versions
- >= 4.0.0, < 4.6.4 · fixed in 4.6.4
- Weakness
- CWE-209
- Linked via
- ecosystem package
- Sources
- GitHub
- Dates
- published Nov 16, 2026 · first seen here 5 min ago
CVSS score: 4.8 Severity: Medium Identifier: CVE-2026-119201GHSA-3XF4-9G3C-4H4W Nuxt dev server exposes generated appSecret through Vite file serving Package: @nuxt/vite-builder fixed in 4.6.3 Published Published
Nuxt is an open-source web development framework for Vue.js. From 4.6.0 until 4.6.3, nuxt dev stores a generated appSecret in <buildDir>/app-secret, by default .nuxt/app-secret, within a directory allowed by Vite's server.fs configuration. A client with direct HTTP access to an exposed development server can fetch the file, use deriveSecret() to compute derived secrets such as the default useSession password, and forge session cookies accepted by that development server. The default localhost binding limits remote exposure, cross-origin browser reads are blocked, production builds and development servers with an explicitly configured appSecret are not affected. This issue is fixed in version 4.6.3.
- Exploitation
- No known exploitation
- EPSS
- 0.33% chance of exploitation in the next 30 days, higher than 18.1% of CVEs
- CVSS
- 4.8 out of 10 · source NVD (github.com)
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N - Versions
- >= 4.6.0, < 4.6.3 · fixed in 4.6.3
- Weakness
- CWE-552
- Linked via
- product name
- Sources
- NVD · GitHub
- Dates
- published Oct 29, 2026 · first seen here 3 min ago
CVSS score: 3.1
Severity: Low
Identifier: CVE-2026-128076GHSA-HF59-9XWC-2G4P
Nuxt: Colliding island props can share one /__nuxt_island path (incomplete fix for CVE-2026-46342)
Package: nuxt fixed in 4.6.4
Published Published
Summary
The fix for CVE-2026-46342 (GHSA-g8wj-3cr3-6w7v) binds each /__nuxt_island/<Name>_<hash>.json path to its props by hashing the (name, props, context, source) tuple. That hash was computed over ohash'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:
{ html: '', note: '<img src=x onerror="alert(1)">' }
{ html: '\',note:\'<img src=x onerror="alert(1)">' }
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.- Path-keyed shared caches. A CDN or reverse proxy that caches
/__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.4 and @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 getIslandHash rather than hashing with ohash directly.
Nuxt 3 has reached end of life and will not receive a fix. Upgrade to Nuxt 4.
Workarounds
- Ensure any intermediary cache keys
/__nuxt_island/*on the full query string, not on the path alone. - Treat island props as untrusted input and do not pass them to
v-htmlor other HTML sinks without sanitisation. - When prerendering, avoid including user-submitted links to
/__nuxt_island/in crawled pages, for example by excluding that prefix withnitro.prerender.ignore:
export default defineNuxtConfig({
nitro: {
prerender: {
ignore: [route => route.startsWith('/__nuxt_island/') && route.includes('?')],
},
},
})
Credits
Thanks to rat5ak for reporting this issue.
- Exploitation
- No known exploitation
- EPSS
- 0.16% chance of exploitation in the next 30 days, higher than 3.1% of CVEs
- CVSS
- 3.1 out of 10 · source GitHub
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N - Versions
- >= 4.4.6, < 4.6.4 · fixed in 4.6.4
- Weakness
- CWE-116, CWE-349
- Linked via
- ecosystem package
- Sources
- GitHub
- Dates
- published Nov 16, 2026 · first seen here 5 min ago
CVSS score: 3.1 Severity: Low Identifier: CVE-2026-128072GHSA-X2WV-5868-P7V2 @nuxt/webpack-builder and @nuxt/rspack-builder dev server serves built source to DNS rebinding pages Package: @nuxt/webpack-builder fixed in 4.6.4 Published Published
Summary
When using the webpack or rspack builder, the dev server serves built client chunks to any request whose Host header matches its Origin/Referer, or that carries Sec-Fetch-Site: same-origin. After a DNS rebinding attack both headers name the attacker's hostname, so a malicious page opened while nuxt dev is running can read /_nuxt/*.js and exfiltrate the app's source. This bypasses the same-origin check added for GHSA-4gf7-ff8x-hq99, GHSA-6m52-m754-pw2g and GHSA-x6qj-4h56-5rj5.
Impact
A developer runs nuxt dev with builder: 'webpack' or builder: 'rspack' (the default config is enough; --host is not required) and opens a page on an attacker-controlled hostname, for example http://rebind.attacker.example:3000/. The attacker then re-points that hostname at 127.0.0.1. Requests from the page now reach the dev server as same-origin requests:
curl -H 'Host: rebind.attacker.example:3000' -H 'Sec-Fetch-Site: same-origin' http://127.0.0.1:3000/_nuxt/app.js
# 200, with the compiled modules
The page can read the response with fetch, which exposes the compiled source and its inline source maps, module identifiers, the developer's local filesystem paths, and any developer-controlled values inlined into the client bundle (for example through a custom DefinePlugin). With rspack, the HMR websocket also accepts connections from the rebound hostname. Private runtimeConfig is not part of the client bundle.
The attacker needs to know or guess the dev server port and to time the DNS change. Chrome 142+ and other Chromium-based browsers that enforce Local Network Access restrictions prompt before a public page can reach a loopback address.
The default Vite builder is not affected: Vite rejects unknown Host headers through server.allowedHosts. Production builds are not affected.
Patches
Fixed in @nuxt/webpack-builder 4.6.4 and @nuxt/rspack-builder 4.6.4. The dev middleware now rejects requests whose Host header is not localhost, *.localhost, an IP address, or a hostname allowed by the new devServer.allowedHosts option or by vite.server.allowedHosts, before any Sec-Fetch-Site/Origin/Referer checks. This includes devServer.host and the hosts nuxt dev allows for the addresses it listens on; nuxt dev --public allows any host, as it does with Vite. With rspack, the same list is passed to rsbuild's server.allowedHosts, which covers the HMR websocket.
When accessing the dev server through another hostname, for example through a reverse proxy, add that hostname to devServer.allowedHosts (a leading . also allows subdomains; true allows any host).
Nuxt 3 has reached end of life and will not receive a fix.
Workarounds
- Use the default Vite builder for development.
- Use Chrome 142+ or another Chromium-based browser that enforces Local Network Access restrictions, and don't open untrusted sites in other browsers while the dev server is running.
- Treat secrets inlined into the client bundle during development as exposed and rotate them.
Credits
Nuxt thanks Anthropic for reporting this through coordinated disclosure (ANT-2026-VKRM97G5).
- Exploitation
- No known exploitation
- EPSS
- 0.19% chance of exploitation in the next 30 days, higher than 5.0% of CVEs
- CVSS
- 3.1 out of 10 · source GitHub
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N - Versions
- >= 4.0.0, < 4.6.4 · fixed in 4.6.4
- Weakness
- CWE-346
- Linked via
- product name
- Sources
- GitHub
- Dates
- published Nov 16, 2026 · first seen here 4 min ago