CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-114130

CVE-2026-114130: Cross-Site Scripting via ASCII Control Characters in Nuxt Fallback Router

Alon Barad
Alon Barad
Software Engineer

Oct 23, 2026·5 min read·15 visits

Executive Summary (TL;DR)

Nuxt applications running with pages disabled fail to sanitize javascript: URIs prefixed with ASCII C0 control characters, resulting in reflected/DOM XSS when rendered within NuxtLink components.

A Cross-Site Scripting (XSS) vulnerability exists in Nuxt when configured with pages disabled (pages: false). ASCII C0 control characters prefixing javascript: URIs bypass internal protocol classification in the fallback router, allowing unauthenticated attackers to execute arbitrary script in the victim's origin context upon user interaction.

Vulnerability Overview

CVE-2026-114130 represents an incomplete fix for a previous vulnerability identified as CVE-2026-53722 (GHSA-934w-87qh-qr26). The issue resides in Nuxt, an open-source web application framework built on top of Vue.js, specifically affecting instances where page routing via vue-router is disabled.

When a Nuxt application sets pages: false in nuxt.config.ts, the core framework bypasses standard Vue Router primitives and delegates link rendering and navigation handling to an internal universal router (router.ts) and the <NuxtLink> component (nuxt-link.ts). This internal routing mechanism exposes an attack surface when user-supplied input is directly bound to link properties.

Under this specific configuration, input strings containing ASCII C0 control characters (range \x01 through \x1F) before the javascript: protocol scheme evade protocol detection. The framework misclassifies the malicious string as an internal relative route and renders it without proper sanitization into the HTML href attribute.

Root Cause Analysis

The root cause stems from a differential between Nuxt's internal URL protocol parser (ufo's hasProtocol and the framework's sanitizeExternalHref helper) and the parsing rules implemented by modern web browsers following the WHATWG URL Standard.

Prior to version 4.6.0, Nuxt evaluated whether a path bound to :to or :href was absolute or relative using regular expression replacements and protocol checks. During URL classification, functions like hasProtocol(path, { acceptRelative: true }) evaluated the raw input string before stripping leading whitespace or ASCII C0 control characters.

When input such as \x01javascript:alert(1) was passed to <NuxtLink>, hasProtocol failed to match the javascript: scheme prefix due to the prepended \x01 byte. As a result, the router treated the value as a relative path and rendered <a href="\x01javascript:alert(1)">. When a user clicks the link, web browsers strip C0 control characters during scheme extraction, restoring javascript:alert(1) and executing the payload.

Code Analysis & Patch Inspection

The original vulnerability mitigation in sanitizeExternalHref relied on custom regex matching to sanitize control characters and strip view-source: wrappers before inspecting the scheme prefix.

// Vulnerable logic previously used in Nuxt
function sanitizeExternalHref (value: string): string | null {
  let candidate = value.replace(/[\u0000-\u001F\s]+/g, '')
  while (candidate.toLowerCase().startsWith('view-source:')) {
    candidate = candidate.slice('view-source:'.length)
  }
  const colon = candidate.indexOf(':')
  if (colon > 0 && isScriptProtocol(candidate.slice(0, colon + 1))) {
    return null
  }
  return value
}

In patch commit 355ed9565127ff9b1453deb7160059ed55b3cb85, the engineering team replaced custom regex parsing with standardized platform primitives utilizing the native URL web API within packages/nuxt/src/app/utils.ts.

// Patched logic in Nuxt 4.6.0
const PROBE_BASE_A = 'https://a.invalid/probe/'
const PROBE_BASE_B = 'https://b.invalid/probe/'
 
function parseAnchorURL (value: string, base: string = PROBE_BASE_A): URL | null {
  try {
    return new URL(value, base)
  } catch {
    return null
  }
}
 
export function getScriptProtocol (value: string): string | null {
  if (!value || isRootedPath(value)) {
    return null
  }
  let resolved = parseAnchorURL(value.replace(/[\u0000-\u001F\u007F\s]+/g, ''))
  while (resolved?.protocol === 'view-source:') {
    resolved = parseAnchorURL(resolved.pathname)
  }
  if (!resolved) {
    return ''
  }
  return isScriptProtocol(resolved.protocol) ? resolved.protocol : null
}
 
export function sanitizeAnchorHref (value: string): string | null {
  return getScriptProtocol(value) === null ? value : null
}

The updated implementation strips control characters and validates the URI scheme using two distinct probe base URLs (PROBE_BASE_A and PROBE_BASE_B) to verify relative versus absolute origins before rendering anchor elements.

Exploitation Methodology

Exploitation requires that an application configured with pages: false accepts user-supplied input and binds it to the :to or :href prop of a <NuxtLink> component.

An attacker constructs a payload by prepending an ASCII C0 control character (such as \x01 or URL-encoded %01) to a javascript: URI scheme containing JavaScript code: %01javascript:alert(document.domain).

When the server or client renders the template, <NuxtLink> inserts the string into the DOM: <a href="&#1;javascript:alert(document.domain)">Click Here</a>.

Upon user click interaction, the browser's URL parser canonicalizes the attribute value, discards \x01, identifies the javascript: scheme, and executes the payload within the context of the user's active session.

Impact & Risk Assessment

Successful exploitation leads to Cross-Site Scripting (XSS) in the context of the user's browser session. An attacker can perform actions on behalf of the user, read DOM contents, access local storage or session tokens not protected by HttpOnly flags, or hijack application state.

The official CVSS v4.0 score is rated at 2.3 (Low). The rating reflects specific attack prerequisites: the application must explicitly disable pages (pages: false), rely on vulnerable component properties, and require passive user interaction (clicking the link).

The EPSS score is measured at 0.00329 (24.75th percentile), indicating a low probability of automated exploitation in the wild. The vulnerability is not listed in the CISA KEV catalog.

Remediation & Patch Guidance

The primary remediation strategy is updating the nuxt dependency to version 4.6.0 or later, which incorporates updated URL parsing logic in commit 355ed9565127ff9b1453deb7160059ed55b3cb85 and cherry-pick PR #36459.

Organizations using affected versions can verify installation status by executing npm list nuxt or reviewing package lockfiles.

> [!NOTE] > Applications operating with standard page routing enabled (pages: true or default configuration) use vue-router directly and are not affected by this specific fallback router bug path.

In addition to upgrading, applications should enforce strict Content Security Policies (CSP) with restrictive script-src directives to mitigate the execution of unauthorized inline javascript: URIs.

Official Patches

NuxtCore patch commit implementing URL probe base sanitization
NuxtPull Request #36459 cherry-picking fix into v4.6.0

Fix Analysis (2)

Technical Appendix

CVSS Score
2.3/ 10
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
EPSS Probability
0.33%
Top 75% most exploited

Affected Systems

Nuxt 4.x applications configured with 'pages: false'

Affected Versions Detail

Product
Affected Versions
Fixed Version
nuxt
Nuxt
>= 4.0.0, < 4.6.04.6.0
AttributeDetail
CWE IDCWE-79
Attack VectorNetwork
CVSS v4.0 Score2.3 (Low)
EPSS Score0.00329 (24.75th percentile)
ImpactCross-Site Scripting (XSS)
Exploit Statuspoc
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1189Drive-by Compromise
Initial Access
T1185Browser Session Hijacking
Collection
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

The software does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Known Exploits & Detection

GitHub Security Advisory GHSA-jjm6-p2m9-9w4xProof of concept test cases within official advisory and repository patch commits

Vulnerability Timeline

Core patch commit 355ed9565127ff9b1453deb7160059ed55b3cb85 created
2026-08-29
Pull Request #36459 merged into release branch
2026-10-05
CVE-2026-114130 and GHSA-jjm6-p2m9-9w4x published
2026-10-21
NVD record updated
2026-10-22

References & Sources

  • [1]GitHub Security Advisory GHSA-jjm6-p2m9-9w4x
  • [2]Nuxt Pull Request #36459
  • [3]Fix Commit 355ed9565127ff9b1453deb7160059ed55b3cb85
  • [4]Fix Commit df46569d5d3c7a7799de54c328634168fbae70bb
  • [5]Nuxt Release v4.6.0
  • [6]NVD Entry for CVE-2026-114130
Related Vulnerabilities
CVE-2026-53722

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•13 minutes ago•CVE-2026-126300
5.3

CVE-2026-126300: Algorithmic Complexity Denial of Service in NLTK TreebankWordTokenizer.span_tokenize

CVE-2026-126300 (GHSA-ffr9-mgrr-wcvr) is an inefficient algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) Python library affecting versions 3.2.5 prior to 3.10.4. The flaw resides in the quote-restoration routine of TreebankWordTokenizer.span_tokenize and NLTKWordTokenizer.span_tokenize, where repeated calls to list.pop(0) over matched quote tokens introduce quadratic O(n^2) time complexity. An unauthenticated remote attacker who supplies input containing long sequences of double-quote characters can exhaust CPU resources and degrade service availability.

Amit Schendel
Amit Schendel
0 views•10 min read
•about 1 hour ago•GHSA-GPWC-27CW-RH9R
5.3

CVE-2026-126301: Quadratic CPU Exhaustion in NLTK LegalitySyllableTokenizer

The Natural Language Toolkit (NLTK) versions 3.6 through 3.10.3 contain an algorithmic complexity vulnerability in the LegalitySyllableTokenizer.tokenize method. When processing tokens composed of continuous runs of vowels, an unguarded string reversal and set membership lookup loop executes in quadratic time relative to the input token length. Remote attackers capable of submitting arbitrary text to applications utilizing this tokenizer can trigger sustained single-core CPU exhaustion and application-level denial of service.

Amit Schendel
Amit Schendel
2 views•10 min read
•about 2 hours ago•CVE-2026-126304
8.7

CVE-2026-126304: Symlink Path Traversal in NLTK YCOECorpusReader

CVE-2026-126304 is a symlink path traversal vulnerability (CWE-59) in the Natural Language Toolkit (NLTK) versions 3.10.0 prior to 3.10.4. The YCOECorpusReader class constructs internal sub-readers for the 'psd' and 'pos' subdirectories using FileSystemPathPointer.join(), which relies exclusively on lexical string-prefix validation rather than canonical path resolution. An attacker who supplies a crafted YCOE corpus containing symbolic links in place of the 'psd' or 'pos' subdirectories can bypass directory confinement and read arbitrary files from sibling corpora or sensitive directories within the NLTK data sandbox.

Amit Schendel
Amit Schendel
4 views•9 min read
•about 3 hours ago•CVE-2026-128077
6.5

CVE-2026-128077: Authorization Bypass via Request Path Desynchronization in Nuxt and @nuxt/nitro-server

CVE-2026-128077 (GHSA-r99w-jh2x-3mg9) is an authorization bypass and interpretation conflict vulnerability affecting Nuxt and its underlying @nuxt/nitro-server package in versions 4.6.0 through 4.6.3. When an incoming HTTP request path begins with a double forward slash (e.g., //x/admin), the WHATWG URL parser within the Nuxt server-side page renderer interprets the initial segment as a network host/authority and resolves the remaining path (/admin) against the application's page router. Because Nitro server middleware, route-scoped serverHandlers, and Nitro routeRules evaluate the unparsed request path (//x/admin), path-based access controls, redirects, and security header policies configured for /admin fail to match and are bypassed.

Amit Schendel
Amit Schendel
5 views•10 min read
•about 4 hours ago•CVE-2026-128084
4.8

CVE-2026-128084: Integer Truncation and SQL Query Truncation in sqlite3-ruby

Prior to version 2.10.2, the sqlite3-ruby gem explicitly cast 64-bit Ruby string lengths (long) to 32-bit signed integers (int) when invoking the underlying SQLite C API. On 64-bit platforms, providing a string of 4 GiB (2^32 bytes) or larger causes integer truncation, instructing SQLite to process only a prefix of the string. This flaw affects SQL query preparation, bound parameter values, and return values from custom Ruby-defined SQL functions and aggregates, allowing trailing SQL clauses such as WHERE restrictions to be silently dropped under specific conditions.

Alon Barad
Alon Barad
5 views•11 min read
•about 5 hours ago•CVE-2026-128068
5.3

CVE-2026-128068: Regular Expression Denial of Service in rails-html-sanitizer

CVE-2026-128068 (GHSA-cpgf-5mjf-73p7) is a Regular Expression Denial of Service (ReDoS) vulnerability in the rails-html-sanitizer Ruby gem affecting versions 1.0.3 through 1.7.1. The flaw resides in the Rails::HTML::PermitScrubber#scrub_attribute method, which uses the multiline regular expression /^\s*[^#\s].*/m to enforce local-only URI fragment references on SVG elements. On Ruby runtimes prior to version 3.2 (CRuby <= 3.1 and JRuby), evaluating an attribute value composed of repeated newline and whitespace characters without a hash character triggers quadratic backtracking O(n^2). Applications are only vulnerable if their sanitization allowlist is explicitly configured to permit SVG reference elements such as <use> alongside href or xlink:href attributes.

Alon Barad
Alon Barad
6 views•9 min read