{"vuln_id":"CVE-2026-128071","aliases":["GHSA-f3x9-2chm-73c8","GHSA-6gq8-jgmh-3ffp"],"description":"Nuxt: Incomplete fix for GHSA-6gq8-jgmh-3ffp: an encoded slash (`%2F`) in the request path bypasses route rules on catch-all page routes","published_at":"2026-11-13T18:17:35.073000Z","modified_at":"2026-11-18T04:17:13.740000Z","first_seen_at":"2026-11-21T19:15:20.337671Z","severity":"medium","severity_source":"nvd","cvss_score":6.5,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","cwe":["CWE-436","CWE-863"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00268,"epss_percentile":0.19142,"nvd_status":"Awaiting Analysis","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-128071"},"matched_alias":null,"items":[{"id":2595,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-f3x9-2chm-73c8 / CVE-2026-128071: Nuxt: Incomplete fix for GHSA-6gq8-jgmh-3ffp: an encoded slash (`%2F`) in the request path bypasses route rules on catch-all page routes","summary":"Nuxt: Incomplete fix for GHSA-6gq8-jgmh-3ffp: an encoded slash (`%2F`) in the request path bypasses route rules on catch-all page routes\n\n### Summary\n\nNuxt 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](https://github.com/nuxt/nuxt/security/advisories/GHSA-6gq8-jgmh-3ffp) deliberately left reserved escapes such as `%2F` encoded, so it did not cover this form.\n\n### Impact\n\nAn 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.\n\n```ts\nexport default defineNuxtConfig({\n  routeRules: {\n    '/docs/internal/**': { appMiddleware: 'auth', headers: { 'X-Frame-Options': 'DENY' } },\n    '/admin/**': { redirect: '/login' },\n  },\n})\n```\n\nWith `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.\n\nThe 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.\n\nWhether the page then shows protected content depends on how it reads the route:\n\n- With a route such as `definePageMeta({ path: '/docs/:path(.*)' })`, `route.params.path` is `internal/guide` for both requests.\n- With a repeatable catch-all (`[...slug].vue`), `route.params.slug` is `['internal/guide']` instead of `['internal', 'guide']`, so a page that joins the segments (`slug.join('/')`) to load content loads the protected resource.\n- `route.path` keeps the encoding (`/docs/internal%2Fguide`), so a page that loads content by `route.path` does not resolve it.\n\nNot affected:\n\n- Static page routes and params that match a single segment. `/docs%2Finternal` does not match `app/pages/docs/internal.vue`.\n- API handlers in `server/api` and `server/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.\n\nBrowsers send `%2F` in a path as written, so a plain link is enough to reach the page.\n\n### Patches\n\nFixed 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.\n\n### Workarounds\n\nReject page requests whose path contains an encoded slash in a server middleware:\n\n```ts\n// server/middleware/encoded-slash.ts\nexport default defineEventHandler((event) => {\n  if (/%2f/i.test(event.path.split('?')[0])) {\n    throw createError({ statusCode: \n\nAffected packages: npm:@nuxt/nitro-server, npm:@nuxt/vite-server, npm:nuxt\nPatched: nuxt 4.6.4, @nuxt/nitro-server 4.6.4, @nuxt/vite-server 4.6.4","url":"https://github.com/advisories/GHSA-f3x9-2chm-73c8","published_at":"2026-11-16T14:59:45Z","updated_at":"2026-11-16T14:59:47Z","fetched_at":"2026-11-21T19:15:18.416961Z","severity":"medium","cvss_score":6.5,"epss":0.00268,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"nuxt","vuln_id":"CVE-2026-128071","vuln_ids":["CVE-2026-128071","GHSA-6GQ8-JGMH-3FFP","GHSA-F3X9-2CHM-73C8"],"tags":["ghsa","npm","CWE-436","CWE-863"],"cluster_id":2643,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2595","html":"https://vulnwatch.ve1ve2.com/item/2595"}},{"id":5691,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-128071: Nuxt is an open-source web development framework for Vue.js. Nuxt from 3.0.0 until 4.6.4, @nuxt/nitro-server from 3.20.0 until 4.6.4, and @nuxt/vite-server fro…","summary":"Nuxt is an open-source web development framework for Vue.js. Nuxt from 3.0.0 until 4.6.4, @nuxt/nitro-server from 3.20.0 until 4.6.4, and @nuxt/vite-server from 4.6.0 until 4.6.4, routeRules matching leaves an encoded slash (%2F) in the request path while a catch-all page such as app/pages/[...slug].vue or a custom multi-segment page route decodes it into a route parameter. The getRouteRules result is therefore incomplete, and an unauthenticated request can render the page without the redirect, headers, proxy, SSR, noScripts, appMiddleware, or appLayout rules configured for the decoded path. Protected content is resolved only when the page interprets the decoded parameter accordingly: a custom multi-segment parameter can contain the decoded path, while a repeatable catch-all must join the slash-containing array element; route.path remains encoded and does not resolve that resource. Static pages, single-segment parameters, server/api handlers, and server/routes handlers are not affected because they do not have the same encoded-path mismatch. This issue is fixed in version 4.6.4.\n\nReferences:\nhttps://github.com/nuxt/nuxt/commit/084396b101e3b4d3545e86ff80dc313496bc87c0\nhttps://github.com/nuxt/nuxt/releases/tag/v4.6.4\nhttps://github.com/nuxt/nuxt/security/advisories/GHSA-f3x9-2chm-73c8","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-128071","published_at":"2026-11-13T18:17:35.073000Z","updated_at":"2026-11-18T04:17:13.740000Z","fetched_at":"2026-11-21T19:15:31.481256Z","severity":"medium","cvss_score":6.5,"epss":0.00268,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-128071","vuln_ids":["CVE-2026-128071","GHSA-6GQ8-JGMH-3FFP","GHSA-F3X9-2CHM-73C8"],"tags":["CWE-436","CWE-863"],"cluster_id":2644,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/5691","html":"https://vulnwatch.ve1ve2.com/item/5691"}}]}