Skip to content
Heist/ feed
MediumFix available

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`

Type: advisorySource: OSV1 source record

### Summary Three weaknesses in Nuxt's client-navigation URL handling, all reachable from documented public APIs (`navigateTo` and `reloadNuxtApp`): 1. **(CVE-2026-56326) SSR open redirect in `navigateTo` via path-normalisation bypass.** `navigateTo` decided whether a target was external by inspecting the raw input with `hasProtocol(..., { acceptRelative: true })`. Inputs such as `/..//evil.com`, `/.//evil.com`, `/%2e%2e//evil.com`, or `/app/..//evil.com` slipped past that check because they start with `/`, but WHATWG URL parsing then normalised them to the protocol-relative pathname `//evil.com`. The normalised value was written to the `Location` response header and into the `` body of the SSR redirect page, so a victim's browser would resolve the redirect cross-origin to the attacker's host. 2. **(CVE-2026-56698) Client-side script execution via `navigateTo({ open: ... })`.** The client-side early-open handler called `window.open(toPath, ...)` without applying the `isScriptProtocol` check that gates the normal `navigateTo` path. A target of `javascript:...` (or another script-capable scheme) passed to `navigateTo(url, { open: { ... } })` therefore executed in the application's origin instead of being rejected. 3. **(CVE-2026-56697) Open redirect in `reloadNuxtApp` via protocol-relative bypass.** `reloadNuxtApp({ path })` rejects script-capable protocols by parsing the path with `new URL(path, window.location.href)` and checking the resolved `protocol` against `isScriptProto

Announced Source revision 1
Original source ↗

GHSA-c9cv-mq2m-ppp3

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:GHSA-c9cv-mq2m-ppp3

nuxt

Source reference: /affected/0/package/name

Affected versions
Not stated in this record
Fixed versions
4.4.7

Source reference: /affected/0/ranges

Prerequisites
Not stated in this record

nuxt

Source reference: /affected/1/package/name

Affected versions
Not stated in this record
Fixed versions
3.21.7

Source reference: /affected/1/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "4.0.0"
          },
          {
            "fixed": "4.4.7"
          }
        ]
      }
    ],
    "package": {
      "name": "nuxt",
      "purl": "pkg:npm/nuxt",
      "ecosystem": "npm"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-c9cv-mq2m-ppp3/GHSA-c9cv-mq2m-ppp3.json"
    }
  },
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "3.5.0"
          },
          {
            "fixed": "3.21.7"
          }
        ]
      }
    ],
    "package": {
      "name": "nuxt",
      "purl": "pkg:npm/nuxt",
      "ecosystem": "npm"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-c9cv-mq2m-ppp3/GHSA-c9cv-mq2m-ppp3.json"
    }
  }
]
Related CVEs
CVE-2026-56326

Source reference: /aliases

CVE-2026-56697

Source reference: /aliases

CVE-2026-56698

Source reference: /aliases

Publisher severity

medium

Source reference: /severity/0/score

Event
#72923 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement