{"id":"GHSA-r99w-jh2x-3mg9","summary":"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","details":"### Summary\n\nSince `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](https://github.com/nuxt/nuxt/security/advisories/GHSA-9v7c-q64q-vv33) in `4.6.3` covered dot segments but not this form.\n\n### Impact\n\nAn unauthenticated attacker can bypass server-side controls that match on the request path of a page route.\n\nA route-scoped server handler is skipped:\n\n```ts\n// nuxt.config.ts\nexport default defineNuxtConfig({\n  serverHandlers: [{ route: '/admin', middleware: true, handler: '~~/server/admin-guard.ts' }],\n})\n```\n\n```ts\n// server/admin-guard.ts\nexport default defineEventHandler((event) =\u003e {\n  if (!isAuthenticated(event)) {\n    throw createError({ statusCode: 401 })\n  }\n})\n```\n\nWith 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.\n\nServer-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.\n\nBrowsers send a path such as `//x/admin` as written, so a plain link is enough to reach the page.\n\nNot affected:\n\n- API handlers in `server/api` and `server/routes`, which Nitro does not match for these paths.\n- `appMiddleware` route rules and middleware declared with `definePageMeta`, which are matched against the resolved route.\n- Nuxt `3.x` and `4.0.0` to `4.5.x`, which pass the path to the page router unchanged, so these requests 404.\n\n### Patches\n\nFixed 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.\n\n### Workarounds\n\nReject request paths that start with `//` in a server middleware:\n\n```ts\n// server/middleware/double-slash.ts\nexport default defineEventHandler((event) =\u003e {\n  if (event.path.startsWith('//')) {\n    throw createError({ statusCode: 404 })\n  }\n})\n```\n\nA reverse proxy or CDN that merges repeated slashes before forwarding the request also removes the mismatch.\n\n### Credits\n\nNuxt thanks @kq5y for reporting this issue.","aliases":["CVE-2026-128077"],"modified":"2026-11-13T19:45:03.800884295Z","published":"2026-11-13T19:32:21Z","database_specific":{"cwe_ids":["CWE-436","CWE-863"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-11-13T19:32:21Z","nvd_published_at":"2026-11-13T18:17:37Z"},"references":[{"type":"WEB","url":"https://github.com/nuxt/nuxt/security/advisories/GHSA-r99w-jh2x-3mg9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-128077"},{"type":"WEB","url":"https://github.com/nuxt/nuxt/commit/75c12c6fb4c22ec2cbde0051da24776d2dffa868"},{"type":"PACKAGE","url":"https://github.com/nuxt/nuxt"},{"type":"WEB","url":"https://github.com/nuxt/nuxt/releases/tag/v4.6.4"}],"affected":[{"package":{"name":"@nuxt/nitro-server","ecosystem":"npm","purl":"pkg:npm/%40nuxt/nitro-server"},"ranges":[{"type":"SEMVER","events":[{"introduced":"4.6.0"},{"fixed":"4.6.4"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-r99w-jh2x-3mg9/GHSA-r99w-jh2x-3mg9.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"}]}