Description
Nuxt versions 4.0.0 before 4.4.7 and 3.x before 3.21.7 contain a server-side open redirect vulnerability in navigateTo that fails to properly validate path-normalized payloads like /..//evil.com and /.//evil.com. Attackers can bypass external-host checks using path-normalization techniques to redirect users to attacker-controlled sites via the Location header or meta-refresh, enabling phishing and OAuth authorization-code theft.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Nuxt | Nuxt | 4.0.0 – < 4.4.7, < 3.21.7 | 4.4.7 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | nuxt | >= 4.0.0, < 4.4.7 | 4.4.7 | GHSA-c9cv-mq2m-ppp3 |
| npm | nuxt | >= 3.5.0, < 3.21.7 | 3.21.7 | GHSA-c9cv-mq2m-ppp3 |
References
- GitHub Security Advisory (GHSA-c9cv-mq2m-ppp3) vendor-advisory
- https://github.com/nuxt/nuxt/commit/2cce6fb02e621196d56df92e05594e07469b5a6d patch
- https://github.com/nuxt/nuxt/commit/1f2dd5e78c77576437138e97671965573c232835 patch
- VulnCheck Advisory: Nuxt - Server-Side Open Redirect via Path-Normalization Bypass in navigateTo third-party-advisory