Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-114133 Overview
CVE-2026-114133 is a stored cross-site scripting (XSS) vulnerability in Nuxt, an open-source web development framework for Vue.js. The flaw affects versions 3.13.0 through 4.6.1. The server-island renderer serializes raw useHeadSafe entry input into the island response without preserving the safe-input marker. The NuxtIsland component then inserts that input into the page head as an ordinary entry, bypassing the allowlist. Applications that pass attacker-controlled data to useHeadSafe in a .server.vue component, page, or any component rendered through NuxtIsland can render event-handler attributes or executable script content. The issue is fixed in version 4.6.2 and is tracked under [CWE-79].
Critical Impact
Attacker-controlled input routed through useHeadSafe in server islands can execute arbitrary JavaScript in the application origin, enabling stored XSS, session theft, and account takeover.
Affected Products
- Nuxt 3.13.0 through 4.6.1
- Applications using useHeadSafe within .server.vue components or pages
- Components rendered through the NuxtIsland wrapper
Discovery Timeline
- 2026-10-21 - CVE-2026-114133 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-114133
Vulnerability Analysis
Nuxt provides useHeadSafe, a composable that applies an allowlist to head tag input and strips dangerous attributes such as inline event handlers and executable script content. The composable relies on a _safe marker that signals downstream renderers to apply the allowlist.
The server-island renderer in packages/nitro-server/src/runtime/handlers/island.ts serialized useHeadSafe input into the island response without preserving the safe-input marker. When NuxtIsland later consumed the serialized payload on the client, it pushed the entry into the head as an unmarked, ordinary input. The allowlist was never applied a second time.
As a result, attacker-controlled data flowing into useHeadSafe from a server island reached the DOM with event handlers and script content intact. The resulting payload executes in the application origin, producing stored XSS when the input is persisted.
Root Cause
The root cause is loss of the safe-input marker during serialization across the server-island boundary. The sanitization contract was enforced only at the point of input, not at the point of render, breaking an implicit trust boundary between the island renderer and the client-side head manager.
Attack Vector
An authenticated low-privilege user submits data that an application forwards into useHeadSafe inside a .server.vue component. A separate victim loads a page that renders the affected island. The injected handler or script executes in the victim's browser.
// Patch excerpt: packages/nitro-server/src/runtime/utils/island-head.ts
import type { HeadTag, SerializableHead } from '@unhead/vue/types'
import { SafeInputPlugin } from '@unhead/vue/plugins'
import { createHead } from '@unhead/vue/server'
import { resolveTags } from '@unhead/vue/utils'
const TAG_CONFIG_KEYS = ['key', 'tagPosition', 'tagPriority'] as const
/**
* Apply the `useHeadSafe` allowlist to resolved head input, returning input that renders
* the same tags when pushed without it.
*/
export function toSafeHeadInput (input: SerializableHead): SerializableHead {
const { titleTemplate, ...rest } = input as SerializableHead & { titleTemplate?: unknown }
const head = createHead({ disableDefaults: true, plugins: [SafeInputPlugin] })
head.push(rest, { _safe: true })
const safe: Record<string, any> = {}
if (typeof titleTemplate === 'string' || titleTemplate === null) {
safe.titleTemplate = titleTemplate
}
for (const tag of resolveTags(head)) {
if (tag.tag === 'title') {
safe.title = tag.textContent
continue
}
// ...resolved tags re-emitted with allowlist applied
}
}
Source: Nuxt security commit 493565e
Detection Methods for CVE-2026-114133
Indicators of Compromise
- Island response payloads containing onerror, onload, onclick, or other on* event handler attributes in head tags.
- <script> tag content served through /__nuxt_island/ endpoint responses.
- Unexpected outbound requests from client browsers to attacker-controlled hosts shortly after rendering island-backed pages.
Detection Strategies
- Inspect server-side logs for /__nuxt_island/ requests that return responses containing event-handler attributes or script content in the head field.
- Review application code for calls to useHeadSafe inside .server.vue files or components rendered through NuxtIsland with user-controlled input.
- Deploy a Content Security Policy (CSP) report-only header to surface inline script and handler violations originating from head-injected content.
Monitoring Recommendations
- Alert on anomalous document.head mutations introducing script elements or event handler attributes after island hydration.
- Correlate client-side CSP violation reports with specific route or island identifiers to identify affected pages.
- Track Nuxt framework versions across build pipelines and flag any deployment running a release older than 4.6.2.
How to Mitigate CVE-2026-114133
Immediate Actions Required
- Upgrade Nuxt to version 4.6.2 or later across all production and staging environments.
- Audit every call to useHeadSafe and identify instances that consume user-controlled data within server islands.
- Rotate session cookies and credentials if logs show island responses carrying handler attributes or script content.
Patch Information
The fix is delivered in Nuxt v4.6.2. The patch introduces toSafeHeadInput in packages/nitro-server/src/runtime/utils/island-head.ts, which re-applies the SafeInputPlugin allowlist to resolved head tags before serializing them into the island response. Refer to the GHSA-xfq5-w38q-pc2x advisory for complete details.
Workarounds
- Avoid passing user-controlled data to useHeadSafe in any .server.vue component or component rendered through NuxtIsland until the upgrade is complete.
- Sanitize or allowlist head input manually before invoking useHeadSafe in server-island contexts.
- Enforce a strict Content Security Policy that blocks inline event handlers and inline scripts to reduce exploitation impact.
# Upgrade Nuxt to the patched release
npm install nuxt@4.6.2
# or
pnpm add nuxt@4.6.2
# or
yarn add nuxt@4.6.2
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

