CVE-2026-45669 Nuxt: Reflected XSS in `navigateTo()` external redirect
Attackers can inject arbitrary JavaScript via external redirects in Nuxt, leading to code execution under the application's origin.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-45669?
CVE-2026-45669 is a medium-severity cross-site scripting vulnerability in nuxt, published on 12 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Nuxt is an open-source web development framework for Vue.js. From versions 3.4.3 to before 3.21.6 and 4.0.0-alpha.1 to before 4.4.6, navigateTo() with external: true generates a server-side HTML redirect body containing a <meta http-equiv="refresh"> tag. The destination URL is only sanitized by replacing " with %22, leaving <, >, &, and ' unencoded. An attacker who can influence the URL passed to navigateTo(url, { external: true }) can break out of the content="…" attribute and inject arbitrary HTML/JavaScript that executes under the application's origin. This issue has been patched in versions 3.21.6 and 4.4.6.
Weakness: CWE-83
Which versions are affected by CVE-2026-45669?
4 open source packages ship an affected version, including nuxt. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
nuxt npm | From 3.4.3 | 3.21.6 |
nuxt npm | From 3.4.3 | 3.21.6 |
nuxt npm | From 4.0.0-alpha.1 | 4.4.6 |
nuxt npm | From 4.0.0-alpha.1 | 4.4.6 |
Products include Nuxt Nuxt.
How do I fix CVE-2026-45669?
Upgrade nuxt to a fixed version for your release line: 3.21.6 or 4.4.6.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-45669 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-45669 exists.
Other vulnerabilities in nuxt
- CVE-2026-53721 Nuxt: Route-rule middleware bypass via case-sensitivity mismatch between vue-router and the routeRules matcher
- CVE-2024-23657 Path Traversal: '../filedir' in Nuxt Devtools
- CVE-2024-34344 Remote code execution via the browser when running the test locally in nuxt
- CVE-2024-42352 Server-Side Request Forgery (SSRF) in nuxt-icon
- CVE-2023-3224 Code Injection in nuxt/nuxt
Sources
Also known as GHSA-fx6j-w5w5-h468.