GHSA-gj2h-2fpw-fhv9: @nuxt/ui UAuthForm / UForm SSR Markup Vulnerability

MODERATE
CWE-598 CWE-200
Published
Advisory Summary

GHSA-gj2h-2fpw-fhv9 is a MODERATE uauthform / uform ssr markup vulnerability (CWE-598: Use of HTTP Request With Sensitive Query String) affecting @nuxt/ui libraries in the npm ecosystem. The issue involves uauthform / uform ssr markup omits `method`, leaking credentials via get if submitted before hydration. Remediation is available by upgrading affected packages to version 4.8.1.

GHSA-gj2h-2fpw-fhv9 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-gj2h-2fpw-fhv9
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-598: Use of HTTP Request With Sensitive Query String
Affected Product @nuxt/ui
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-gj2h-2fpw-fhv9

To remediate this vulnerability, upgrade all affected @nuxt/ui dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@nuxt/ui fixed: 4.8.1
npm install @nuxt/ui@4.8.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @nuxt/ui

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-gj2h-2fpw-fhv9, inspect your project dependencies using npm:

npm ls @nuxt/ui

Analyze the terminal output to locate any version of @nuxt/ui in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.8.1), your application is affected.

Note: The npm ls @nuxt/ui command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-598: Use of HTTP Request With Sensitive Query String, where the web application uses an http method to process a request, but the request includes sensitive information in the query string. In @nuxt/ui, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary `UForm` and `UAuthForm` render a server-side `<form>` element with no `method` and no `action` attribute, relying on a hydrated `@submit.prevent` handler to intercept submission. If a user submits the form before Vue hydration has attached the handler (autofill plus Enter on a slow network, JS bundle blocked by CSP or CDN failure, etc.), the browser performs the native default: a `GET` to the current URL with every named field, including `<input type="password">`, serialised into the query string. ### Details `src/runtime/components/Form.vue` (around the template's `<form>` element) emits: ```vue <component :is="parentBus ? 'div' : 'form'" :id="formId" ref="formRef" :class="ui({ class: [uiProp?.base, props.class] })" @submit.prevent="onSubmitWrapper" > ``` No `method`, no `action`. `@submit.prevent` is the only thing stopping native submission, and it only exists after hydration. `UAuthForm` composes `UForm` and inherits the same shape. The SSR snapshot of `UAuthForm` (`test/components/__snapshots__/AuthForm.spec.ts.snap`) shows the rendered markup, with `<input type="password" name="password">` inside a `<form>` that has no `method`. ### Proof of concept Reported by @nimonian: 1. Create a minimal Nuxt app with a `UAuthForm`. 2. Build for production and visit in a browser with network throttling at 4G or slower. 3. Enter credentials. 4. Submit (or let autofill + Enter fire before hydration). The URL becomes `/login?email=…&password=…`. Reproducible deterministically in Playwright by triggering submit immediately on `load`. ### Impact Any application using `UAuthForm` (or `UForm` with credential-shaped fields) as documented. The cleartext password lands in: - the address bar, - `window.history`, - the `Referer` header of every same-origin subresource fetched from the resulting URL, - access logs of any reverse proxy, CDN, or WAF that records request URLs. ### Patch Default the rendered `<form>` to `method="post"` so the pre-hydration fallback submits as POST rather than GET. Vue's `@submit.prevent` still intercepts the hydrated case; the attribute only matters in the race window. Applications that explicitly want native GET submission can opt back in by passing `method="get"`. ### Credit Reported by @nimonian. Originally filed as `GHSA-92g7-2fpq-hmq8` against `nuxt/nuxt`; moved here because the affected code lives in `@nuxt/ui`.

GHSA-gj2h-2fpw-fhv9 Affected @nuxt/ui Versions

1 component(s)
Fixed Versions:
4.8.1
Product / Package Ecosystem Affected Versions Fixed Version
@nuxt/ui
npm
< 4.8.1
4.8.1

References

Frequently Asked Questions

What is GHSA-gj2h-2fpw-fhv9?
GHSA-gj2h-2fpw-fhv9 is a security vulnerability in @nuxt/ui involving UAuthForm / UForm SSR markup omits `method`, leaking credentials via GET if submitted before hydration under CWE-598: Use of HTTP Request With Sensitive Query String.
Which @nuxt/ui versions are affected?
Affected versions include releases prior to 4.8.1 across affected packages: @nuxt/ui.
What version fixes GHSA-gj2h-2fpw-fhv9?
Upgrading to 4.8.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @nuxt/ui affected?
Yes, @nuxt/ui is affected in releases prior to 4.8.1. Upgrade your dependency to 4.8.1 or later.
What CWE is associated with GHSA-gj2h-2fpw-fhv9?
GHSA-gj2h-2fpw-fhv9 is classified under CWE-598: Use of HTTP Request With Sensitive Query String (The web application uses an HTTP method to process a request, but the request includes sensitive information in the query string.).
How can I check npm dependencies for GHSA-gj2h-2fpw-fhv9?
Run the dependency tree command: 'npm ls @nuxt/ui'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gj2h-2fpw-fhv9",
  "modified" : "2026-08-04T21:55:59Z",
  "published" : "2026-07-02T20:16:12Z",
  "aliases" : [ ],
  "summary" : "@nuxt/ui: UAuthForm / UForm SSR markup omits `method`, leaking credentials via GET if submitted before hydration",
  "details" : "### Summary\n\n`UForm` and `UAuthForm` render a server-side `<form>` element with no `method` and no `action` attribute, relying on a hydrated `@submit.prevent` handler to intercept submission. If a user submits the form before Vue hydration has attached the handler (autofill plus Enter on a slow network, JS bundle blocked by CSP or CDN failure, etc.), the browser performs the native default: a `GET` to the current URL with every named field, including `<input type=\"password\">`, serialised into the query string.\n\n### Details\n\n`src/runtime/components/Form.vue` (around the template's `<form>` element) emits:\n\n```vue\n<component\n  :is=\"parentBus ? 'div' : 'form'\"\n  :id=\"formId\"\n  ref=\"formRef\"\n  :class=\"ui({ class: [uiProp?.base, props.class] })\"\n  @submit.prevent=\"onSubmitWrapper\"\n>\n```\n\nNo `method`, no `action`. `@submit.prevent` is the only thing stopping native submission, and it only exists after hydration. `UAuthForm` composes `UForm` and inherits the same shape.\n\nThe SSR snapshot of `UAuthForm` (`test/components/__snapshots__/AuthForm.spec.ts.snap`) shows the rendered markup, with `<input type=\"password\" name=\"password\">` inside a `<form>` that has no `method`.\n\n### Proof of concept\n\nReported by @nimonian:\n\n1. Create a minimal Nuxt app with a `UAuthForm`.\n2. Build for production and visit in a browser with network throttling at 4G or slower.\n3. Enter credentials.\n4. Submit (or let autofill + Enter fire before hydration).\n\nThe URL becomes `/login?email=…&password=…`. Reproducible deterministically in Playwright by triggering submit immediately on `load`.\n\n### Impact\n\nAny application using `UAuthForm` (or `UForm` with credential-shaped fields) as documented. The cleartext password lands in:\n\n- the address bar,\n- `window.history`,\n- the `Referer` header of every same-origin subresource fetched from the resulting URL,\n- access logs of any reverse proxy, CDN, or WAF that records request URLs.\n\n### Patch\n\nDefault the rendered `<form>` to `method=\"post\"` so the pre-hydration fallback submits as POST rather than GET. Vue's `@submit.prevent` still intercepts the hydrated case; the attribute only matters in the race window. Applications that explicitly want native GET submission can opt back in by passing `method=\"get\"`.\n\n### Credit\n\nReported by @nimonian. Originally filed as `GHSA-92g7-2fpq-hmq8` against `nuxt/nuxt`; moved here because the affected code lives in `@nuxt/ui`.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@nuxt/ui"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.8.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/nuxt/ui/security/advisories/GHSA-gj2h-2fpw-fhv9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nuxt/ui/pull/6512"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/nuxt/ui"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nuxt/ui/releases/tag/v4.8.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-598" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-02T20:16:12Z",
    "nvd_published_at" : null
  }
}