Nuxt payload URL generation has quadratic cost for repeated slashes in the request path
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| nuxtnuxt | — | Not listed |
| npmnuxt |
≥ 4.6.0, < 4.6.4→ 4.6.4 |
4.6.4 |
Original description The description as published by the source.
Nuxt is an open-source web development framework for Vue.js. From 4.6.0 until 4.6.4, _payload.json URL generation and the experimental early-404 path use a trailing-slash regular expression whose work grows quadratically with a long run of slash characters. An unauthenticated request can synchronously occupy the Node.js event loop and delay other requests when server-side rendering uses isr, swr, or cache route rules, or when experimental.early404 is enabled. Applications without those route rules and without experimental.early404, fully prerendered applications, and client-only applications are unaffected; the impact is limited to availability. This issue is fixed in version 4.6.4.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- web github.com
- web github.com