{"id":"CVE-2026-123808","aliases":["GHSA-gj2h-2fpw-fhv9"],"title":"@nuxt/ui: UAuthForm / UForm SSR markup omits `method`, leaking credentials via GET if submitted before hydration","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"MODERATE","description":"### 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":"medium","score":6.9,"published":"2026-07-02T20:16:12.000Z","modified":"2026-11-14T02:16:10.238Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"npm","name":"@nuxt/ui","sources":[{"name":"OSV · GHSA-gj2h-2fpw-fhv9","url":"https://osv.dev/vulnerability/GHSA-gj2h-2fpw-fhv9"}],"ranges":[{"events":[{"introduced":"0"},{"fixed":"4.8.1"}],"type":"SEMVER"}],"versions":[],"fixed":["4.8.1"]}],"sourceAffected":[],"references":["https://github.com/nuxt/ui/security/advisories/GHSA-gj2h-2fpw-fhv9","https://github.com/nuxt/ui/pull/6512","https://github.com/nuxt/ui","https://github.com/nuxt/ui/releases/tag/v4.8.1","https://github.com/nuxt/ui/commit/7a0825ad6a17627ce4c6dd860df3cebb7cf1d813"],"sources":[{"name":"OSV","id":"GHSA-gj2h-2fpw-fhv9","modified":"2026-11-10T10:56:19.006049255Z","url":"https://osv.dev/vulnerability/GHSA-gj2h-2fpw-fhv9"},{"name":"CVE","id":"CVE-2026-123808","modified":"2026-11-14T02:16:10.238Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-123808"}],"assessments":[{"source":"OSV","vector":"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","score":6.9},{"source":"GitHub_M","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","score":5.3}],"cve":{"records":[{"id":"CVE-2026-123808","source":"GitHub_M","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-11-06T15:27:56.226Z","published":"2026-11-09T20:41:49.528Z","modified":"2026-11-14T02:16:10.238Z"}],"publishers":[{"name":"GitHub_M","role":"CNA","organizationId":"a0819718-46f1-4df5-94e2-005712e83aaa","modified":"2026-11-09T20:41:49.528Z"},{"name":"CISA-ADP","role":"ADP","organizationId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","modified":"2026-11-14T02:16:10.238Z"}],"references":[{"url":"https://github.com/nuxt/ui/security/advisories/GHSA-gj2h-2fpw-fhv9","tags":["x_refsource_CONFIRM"],"source":"GitHub_M"},{"url":"https://github.com/nuxt/ui/pull/6512","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/nuxt/ui/commit/7a0825ad6a17627ce4c6dd860df3cebb7cf1d813","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/nuxt/ui/releases/tag/v4.8.1","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/nuxt/ui/security/advisories/GHSA-gj2h-2fpw-fhv9","tags":["exploit"],"source":"CISA-ADP"}],"weaknesses":[{"id":"CWE-200","description":"CWE-200: Exposure of Sensitive Information to an Unauthorized Actor","source":"GitHub_M"},{"id":"CWE-598","description":"CWE-598: Use of GET Request Method With Sensitive Query Strings","source":"GitHub_M"}],"applicability":[],"prioritization":[{"source":"CISA-ADP","type":"SSVC","role":"CISA Coordinator","timestamp":"2026-11-14T02:15:48.520228Z","decisions":[{"name":"Exploitation","value":"poc"},{"name":"Automatable","value":"no"},{"name":"Technical Impact","value":"partial"}]}]},"products":[{"vendor":"nuxt","name":"ui","platforms":[],"versions":[{"version":"< 4.8.1","status":"affected"}],"cpes":[],"source":"GitHub_M","url":"https://www.cve.org/CVERecord?id=CVE-2026-123808"}],"remediation":[],"observedAt":"2026-11-14T02:47:06.356Z","kev":{"status":"not-listed","checkedAt":"2026-11-29T00:15:30.802Z"},"coverage":[{"source":"NVD","status":"no-result","checkedAt":"2026-11-09T20:55:33.303Z","attemptedAt":"2026-11-09T20:55:33.303Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-11-09T20:55:33.311Z","attemptedAt":"2026-11-09T20:55:33.311Z"},{"source":"EUVD","status":"no-result","checkedAt":"2026-11-09T20:55:33.311Z","attemptedAt":"2026-11-09T20:55:33.311Z"},{"source":"EPSS","status":"no-result","checkedAt":"2026-11-09T20:55:33.311Z","attemptedAt":"2026-11-09T20:55:33.311Z"}],"evidence":[],"aiSummary":null}