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-114130 Overview
CVE-2026-114130 is a cross-site scripting (XSS) vulnerability in Nuxt, an open-source web development framework for Vue.js. The flaw affects applications with pages disabled and represents an incomplete fix for CVE-2026-53722. When attacker-controlled input bound to the to prop of NuxtLink is prefixed with an ASCII C0 control character, the no-pages router misclassifies the value as an internal route. The server renders the unsafe href into HTML, browsers strip the control character, and the remaining javascript: URL executes when a victim clicks the link [CWE-79]. The issue is fixed in version 4.6.0.
Critical Impact
Attackers can execute arbitrary JavaScript in the application's origin by convincing a victim to click a rendered NuxtLink whose href begins with a C0 control character followed by a script protocol.
Affected Products
- Nuxt versions prior to 4.6.0
- Applications using Nuxt with pages disabled
- Server-rendered Nuxt applications that bind user input to NuxtLink's to prop
Discovery Timeline
- 2026-10-21 - CVE-2026-114130 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-114130
Vulnerability Analysis
The vulnerability resides in Nuxt's no-pages router, which handles link resolution when the pages feature is disabled. When an attacker supplies a value such as \\x01javascript:alert(1) to the to prop of a NuxtLink, the router evaluates the string as an internal route because its protocol check runs after classification. The unsafe value is then written directly to the anchor's href attribute in server-rendered HTML.
Browsers normalize anchor hrefs by removing leading ASCII C0 control characters (U+0000 through U+001F). After normalization, the href becomes a valid javascript: URL. Clicking the link executes attacker-controlled script in the application's origin, enabling session theft, DOM manipulation, or further attacks against authenticated users.
Root Cause
The root cause is an ordering flaw in protocol validation. The no-pages router classifies the input as internal before checking for script protocols with isScriptProtocol and hasProtocol from the ufo library. The classifier did not strip or reject leading control characters, so a prefix byte bypassed the protocol filter entirely. Both the default anchor rendering and the NuxtLink custom output are affected.
Attack Vector
Exploitation requires an application that binds attacker-controlled input to a NuxtLink's to prop and has pages disabled. The attacker injects a payload prefixed with a C0 control character, for example \\x01javascript:.... The server renders the link; a victim must click it to trigger script execution. User interaction is therefore required.
// Security patch from Nuxt PR #36459
// File: packages/nuxt/src/app/composables/router.ts
-import { decodePath, hasProtocol, isScriptProtocol, joinURL, parseQuery, parseURL, withQuery } from 'ufo'
+import { decodePath, joinURL, parseQuery, parseURL, withQuery } from 'ufo'
import type { NuxtLayouts } from '../../pages/runtime/composables'
import { isInComponentSetup, useNuxtApp, useRuntimeConfig } from '../nuxt'
import { PageRouteSymbol } from '../components/injections'
import { sanitizeStatusCode } from '../utils/http-status'
+import { getScriptProtocol, getUserTrace, isAbsoluteHref } from '../utils'
// File: packages/nuxt/src/app/middleware/route-rules.ts
if (rules.redirect) {
const path = rules.redirect.includes('#') ? rules.redirect : (rules.redirect + to.hash)
- if (hasProtocol(path, { acceptRelative: true })) {
+ if (isAbsoluteHref(path)) {
window.location.href = path
return false
}
Source: Nuxt Commit 355ed95. The patch replaces hasProtocol and isScriptProtocol checks with new helpers isAbsoluteHref and getScriptProtocol that correctly handle control-character prefixes before classification.
Detection Methods for CVE-2026-114130
Indicators of Compromise
- Server-rendered HTML containing anchor tags with href values beginning with ASCII C0 control bytes (U+0000–U+001F) followed by javascript:, data:, or vbscript:
- HTTP request parameters or stored content that include URL-encoded control characters such as %01, %02, or %1F adjacent to script protocols
- Unexpected NuxtLink outputs rendering non-relative schemes in pages-disabled builds
Detection Strategies
- Inspect server-rendered responses for anchor hrefs that fail strict URL parsing after stripping leading control characters
- Add linting rules that forbid binding unsanitized request data directly to the to prop of NuxtLink
- Review web application firewall logs for query strings and form fields containing C0 control characters paired with protocol-like substrings
Monitoring Recommendations
- Monitor client-side error telemetry for javascript: navigations originating from first-party anchors
- Enable Content Security Policy (CSP) reporting to capture inline script executions blocked by script-src directives
- Track Nuxt version inventory across build pipelines to confirm all deployments run 4.6.0 or later
How to Mitigate CVE-2026-114130
Immediate Actions Required
- Upgrade all Nuxt applications to version 4.6.0 or later
- Audit application code for places where request data is bound to NuxtLink's to prop and apply allowlist validation
- Deploy a strict Content Security Policy that disallows inline scripts to limit the impact of residual XSS
Patch Information
The fix is included in Nuxt Release v4.6.0 and landed via Nuxt Pull Request #36459. The patch removes reliance on hasProtocol and isScriptProtocol from ufo and introduces internal isAbsoluteHref and getScriptProtocol helpers that normalize control characters before classifying URLs. See GitHub Security Advisory GHSA-jjm6-p2m9-9w4x for the complete advisory.
Workarounds
- Sanitize user input before binding to NuxtLink by stripping ASCII control characters and rejecting non-relative URLs
- Validate to values against an allowlist of known internal paths rather than permitting arbitrary strings
- Apply a Content Security Policy with script-src 'self' and no unsafe-inline to block javascript: URL execution
# Upgrade Nuxt to the patched release
npm install nuxt@^4.6.0
# Verify installed version
npx nuxt info | grep -i nuxt
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

