Nuxt: URL-handling weaknesses in `navigateTo` and `reloadNuxtApp`: SSR open redirect, client-side script execution via the `open` option, and protocol-relative bypass in `reloadNuxtApp`…
This vulnerability involves three URL-handling weaknesses in Nuxt's client-navigation APIs `navigateTo` and `reloadNuxtApp`. These include an SSR open redirect via path-normalisation bypass, client-side script execution through the `open` option in `navigateTo`, and an open redirect in `reloadNuxtApp` via a protocol-relative URL bypass. These issues allow attackers to cause cross-origin redirects or execute scripts in the application's origin if user-controlled input is passed unsafely. The vulnerabilities are fixed in Nuxt versions 4.4.7 and 3.21.7.
AI Analysis
Technical Summary
Nuxt's `navigateTo` and `reloadNuxtApp` functions had three distinct URL-handling weaknesses. First, `navigateTo` did not properly detect external URLs due to path-normalisation bypasses, allowing SSR open redirects by normalizing inputs like `/..//evil.com` to protocol-relative URLs that redirect cross-origin. Second, `navigateTo({ open: ... })` failed to block script protocols, enabling client-side script execution (reflected XSS) when user input with `javascript:` URLs was passed. Third, `reloadNuxtApp` incorrectly allowed protocol-relative URLs (e.g., `//evil.com`) to bypass script protocol checks, causing open redirects. These vulnerabilities impact apps forwarding user-controlled URLs to these APIs, risking phishing and OAuth token theft. Fixes were released in Nuxt 4.4.7 and 3.21.7 addressing all three issues.
Potential Impact
The SSR open redirect in `navigateTo` can be exploited for phishing or OAuth code theft if user input is forwarded to it on the server side. The client-side script execution via `navigateTo({ open: ... })` enables reflected XSS in the application's origin when user-controlled URLs with script protocols are passed. The open redirect in `reloadNuxtApp` allows cross-origin redirects even with existing script protocol guards, posing similar phishing and token theft risks. These impacts depend on unsafe handling of user-controlled URLs in affected Nuxt applications.
Mitigation Recommendations
A patch is available and should be applied by upgrading to Nuxt versions 4.4.7 or later, or 3.21.7 or later. Until patched, applications should validate redirect targets before passing them to `navigateTo` or `reloadNuxtApp`. For `navigateTo`, reject inputs where the normalized pathname starts with `//` or use an allow-list of known safe paths. For `navigateTo({ open: ... })`, reject URLs with protocols outside an allow-list (typically only `http:` and `https:`). For `reloadNuxtApp`, reject paths starting with `//` or where the resolved host differs from the current host. These mitigations reduce risk until official fixes are applied.
Nuxt: URL-handling weaknesses in `navigateTo` and `reloadNuxtApp`: SSR open redirect, client-side script execution via the `open` option, and protocol-relative bypass in `reloadNuxtApp`…
Description
This vulnerability involves three URL-handling weaknesses in Nuxt's client-navigation APIs `navigateTo` and `reloadNuxtApp`. These include an SSR open redirect via path-normalisation bypass, client-side script execution through the `open` option in `navigateTo`, and an open redirect in `reloadNuxtApp` via a protocol-relative URL bypass. These issues allow attackers to cause cross-origin redirects or execute scripts in the application's origin if user-controlled input is passed unsafely. The vulnerabilities are fixed in Nuxt versions 4.4.7 and 3.21.7.
CVSS v3.1
Score 6.1medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Nuxt's `navigateTo` and `reloadNuxtApp` functions had three distinct URL-handling weaknesses. First, `navigateTo` did not properly detect external URLs due to path-normalisation bypasses, allowing SSR open redirects by normalizing inputs like `/..//evil.com` to protocol-relative URLs that redirect cross-origin. Second, `navigateTo({ open: ... })` failed to block script protocols, enabling client-side script execution (reflected XSS) when user input with `javascript:` URLs was passed. Third, `reloadNuxtApp` incorrectly allowed protocol-relative URLs (e.g., `//evil.com`) to bypass script protocol checks, causing open redirects. These vulnerabilities impact apps forwarding user-controlled URLs to these APIs, risking phishing and OAuth token theft. Fixes were released in Nuxt 4.4.7 and 3.21.7 addressing all three issues.
Potential Impact
The SSR open redirect in `navigateTo` can be exploited for phishing or OAuth code theft if user input is forwarded to it on the server side. The client-side script execution via `navigateTo({ open: ... })` enables reflected XSS in the application's origin when user-controlled URLs with script protocols are passed. The open redirect in `reloadNuxtApp` allows cross-origin redirects even with existing script protocol guards, posing similar phishing and token theft risks. These impacts depend on unsafe handling of user-controlled URLs in affected Nuxt applications.
Mitigation Recommendations
A patch is available and should be applied by upgrading to Nuxt versions 4.4.7 or later, or 3.21.7 or later. Until patched, applications should validate redirect targets before passing them to `navigateTo` or `reloadNuxtApp`. For `navigateTo`, reject inputs where the normalized pathname starts with `//` or use an allow-list of known safe paths. For `navigateTo({ open: ... })`, reject URLs with protocols outside an allow-list (typically only `http:` and `https:`). For `reloadNuxtApp`, reject paths starting with `//` or where the resolved host differs from the current host. These mitigations reduce risk until official fixes are applied.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-c9cv-mq2m-ppp3
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-56326"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a7ff5fabf8831d5398804f2
Added to database: 08/15/2026, 05:15:38 UTC
Last enriched: 08/15/2026, 05:41:55 UTC
Last updated: 08/16/2026, 00:41:14 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.