{"id":"CVE-2026-128074","aliases":["GHSA-r9jc-w898-3fv6"],"url":"https://o3.security/vulnerability/CVE-2026-128074","summary":"Nuxt payload URL generation has quadratic cost for repeated slashes in the request path","details":"### Summary\n\nNuxt 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.\n\n### Impact\n\nWhen 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.\n\nAn app is affected if it uses Nuxt 4.6.0 or later with server-side rendering and has a route rule like:\n\n```ts\nexport default defineNuxtConfig({\n  routeRules: {\n    '/blog/**': { swr: true },\n  },\n})\n```\n\nThe same pattern is also reachable through the opt-in `experimental.early404` option, for any request path.\n\nApps 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.\n\n### Patches\n\nFixed in `nuxt` 4.6.4. Trailing slashes are now removed with a linear scan instead of a regular expression.\n\n### Workarounds\n\nReject request paths containing repeated slashes before they reach the renderer, for example at the reverse proxy or with a server middleware:\n\n```ts\n// server/middleware/reject-repeated-slashes.ts\nexport default defineEventHandler((event) => {\n  if (event.path.split('?')[0]!.includes('//')) {\n    throw createError({ statusCode: 404 })\n  }\n})\n```\n\nIf you use `experimental.early404`, you can also disable it until you upgrade.\n\n### Credits\n\nThanks to cryptofox9 for reporting this issue.","published":"2026-11-13T17:34:38.857Z","modified":"2026-11-15T02:46:31.015214859Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"npm","name":"nuxt","fixedVersion":"4.6.4"}],"fix":{"url":"https://github.com/nuxt/nuxt/commit/97424dd21c59b60cc7ece28576e15069ca0fdbc4","label":"nuxt/nuxt@97424dd"},"references":[{"type":"WEB","url":"https://github.com/nuxt/nuxt/releases/tag/v4.6.4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/128xxx/CVE-2026-128074.json"},{"type":"ADVISORY","url":"https://github.com/nuxt/nuxt/security/advisories/GHSA-r9jc-w898-3fv6"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-128074"},{"type":"FIX","url":"https://github.com/nuxt/nuxt/commit/97424dd21c59b60cc7ece28576e15069ca0fdbc4"},{"type":"PACKAGE","url":"https://github.com/nuxt/nuxt"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-11-15T02:46:31.015214859Z"}}