MEDIUM · CVSS 3.1 6.5 EPSS 0.4% · 23th percentile CWE-436CWE-863

CVE-2026-128077: 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

Published 2026-11-13 · Updated 2026-11-13 · Also known as GHSA-r99w-jh2x-3mg9

Summary

A path parsing flaw in Nuxt allows attackers to bypass server-side route guards, middleware, and route rules using URLs starting with double slashes. Engineering teams using @nuxt/nitro-server versions 4.6.0 through 4.6.3 must upgrade to version 4.6.4 immediately.

Who is affected

Affected deployments are those using Nuxt versions 4.6.0 to 4.6.3 that rely on server-side middleware or route rules to secure page routes. By prefixing a URL with //, an attacker can cause the server to render pages and fetch data while bypassing authentication checks, security headers, or redirect rules applied to the path.

Exploitability

The vulnerability is rated Medium with a CVSS base score of 6.5, reflecting a low attack complexity and no required authentication. With an EPSS score of 0.003 and no CISA KEV listing, active exploitation is not documented.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
npm @nuxt/nitro-server >= 4.6.0, < 4.6.4 4.6.4 npm install @nuxt/[email protected]

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityLow
IntegrityLow
AvailabilityNone

FAQ

Are API routes affected by this vulnerability?

No, API handlers located in server/api and server/routes are not impacted as Nitro does not match these paths in the same way.

Is client-side middleware vulnerable?

No, appMiddleware and middleware declared with definePageMeta are matched against the resolved route and are not affected by this path parsing flaw.

Does this vulnerability affect Nuxt 3.x?

No, Nuxt 3.x and versions 4.0.0 through 4.5.x are not affected because they do not incorrectly parse paths starting with //, resulting in a 404 error instead.

Original advisory description
### 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](https://github.com/nuxt/nuxt/security/advisories/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: ```ts // nuxt.config.ts export default defineNuxtConfig({ serverHandlers: [{ route: '/admin', middleware: true, handler: '~~/server/admin-guard.ts' }], }) ``` ```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/api` and `server/routes`, which Nitro does not match for these paths. - `appMiddleware` route rules and middleware declared with `definePageMeta`, which are matched against the resolved route. - Nuxt `3.x` and `4.0.0` to `4.5.x`, which pass the path to the page router unchanged, so these requests 404. ### Patches Fixed in `@nuxt/[email protected]`, which `[email protected]` 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: ```ts // 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.

References

Source records: GHSA-r99w-jh2x-3mg9 (OSV.dev) · EPSS by FIRST, 2026-11-26.