MEDIUM · CVSS 4.0 EPSS 0.5% · 36th percentile CWE-1333

CVE-2026-128074: Nuxt payload URL generation has quadratic cost for repeated slashes in the request path

Published 2026-11-16 · Updated 2026-11-16 · Also known as GHSA-r9jc-w898-3fv6

Summary

Nuxt contains a regular expression Denial of Service vulnerability in payload URL generation due to quadratic cost for repeated slashes in request paths. Engineering and security teams using Nuxt 4.6.0 through 4.6.3 with specific route rules or experimental settings must update.

Who is affected

Affected deployments include applications using Nuxt 4.6.0 to 4.6.3 with server-side rendering and route rules using isr, swr, or cache, or those with the opt-in experimental.early404 option enabled. An unauthenticated attacker can send a request with a long run of consecutive slashes to occupy the server event loop and delay other requests, causing a denial of service with no confidentiality or integrity impact.

Exploitability

The vulnerability is remotely exploitable over network connections with low attack complexity and no privileges or user interaction required, resulting in low availability impact. The EPSS score is 0.003 and CISA Known Exploited Vulnerabilities status is no.

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 >= 4.6.0, < 4.6.4 4.6.4 npm install [email protected]

CVSS 4.0 vector

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

Attack vectorNetwork
Attack complexityLow
Attack requirementsNone
Privileges requiredNone
User interactionNone
Confidentiality (vulnerable system)None
Integrity (vulnerable system)None
Availability (vulnerable system)Low
Confidentiality (subsequent systems)None
Integrity (subsequent systems)None
Availability (subsequent systems)None

Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.

FAQ

What causes the vulnerability in Nuxt?

Nuxt strips trailing slashes from request paths using a regular expression that exhibits quadratic cost growth when processing runs of consecutive slashes.

Which applications are not affected?

Fully prerendered apps, client-only apps, and applications without isr, swr, or cache route rules and without experimental.early404 are not affected.

How was the vulnerability fixed?

The vulnerability was fixed in nuxt version 4.6.4 by replacing the regular expression with a linear scan to remove trailing slashes.

Original advisory description
### 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: ```ts 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: ```ts // 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.

References

Source records: GHSA-r9jc-w898-3fv6 (OSV.dev) · EPSS by FIRST, 2026-11-26.