Nuxt: Dot segments in the request path bypass `server/middleware` path checks and server route rules on page routes
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| nuxtnuxt | — | Not listed |
| @nuxtnitro-server | — | Not listed |
| npmnuxt |
≥ 4.6.0, < 4.6.3→ 4.6.3 |
4.6.3 |
| npm@nuxt/nitro-server |
≥ 4.6.0, < 4.6.3→ 4.6.3 |
4.6.3 |
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.3, Nuxt resolves literal or percent-encoded dot segments before rendering a page while Nitro routing, server/middleware checks, and server route rules evaluate the unresolved path. A request such as /%2e/admin can therefore render app/pages/admin.vue and its server-rendered data while checks keyed to /admin, redirects, or per-route security headers do not apply. API handlers, appMiddleware, Nuxt 3, and Nuxt 4.0.0 through 4.5.x are not affected, and exploitation requires a client that sends dot segments without browser normalization. This issue is fixed in version 4.6.3.
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