Description
Nuxt versions 4.0.0 before 4.4.7 and 3.x before 3.21.7 fail to validate script-capable URLs in the navigateTo open option, allowing client-side script execution. Attackers can supply javascript: URLs through the open parameter to execute arbitrary scripts in the application's origin when user-controlled input is passed to navigateTo.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Nuxt | Nuxt | 4.0.0 – < 4.4.7, < 3.21.7 | 4.4.7 |
References
- GitHub Security Advisory (GHSA-c9cv-mq2m-ppp3) vendor-advisory
- https://github.com/nuxt/nuxt/commit/3394716d4a913cba904b028df5338f2aead50032 patch
- https://github.com/nuxt/nuxt/commit/62fc32eddf648b00a3890141e0235d2a222b024d patch
- VulnCheck Advisory: Nuxt - Cross-Site Scripting via navigateTo open Option third-party-advisory