Oct 23, 2026·6 min read·22 visits
A case-sensitivity mismatch between Nitro server route rules and the Nuxt Vue page router allows attackers to bypass security headers, redirects, and proxy rules by requesting paths with altered casing (e.g., `/Admin/secret` instead of `/admin/secret`).
Nuxt versions prior to 4.6.2 suffer from a route rule bypass vulnerability caused by an architectural mismatch in case-sensitivity handling between the Nitro server runtime and the Vue page router. An unauthenticated remote attacker can bypass server-enforced route directives—such as redirects, security headers, and SSR controls—by altering character casing in HTTP request paths.
Nuxt is an open-source web development framework built on Vue.js that utilizes Nitro as its underlying server engine. In Nuxt applications, administrators define server-side operational behaviors using the routeRules configuration object within nuxt.config.ts. These rules govern server-level features including HTTP redirects, security header injections, proxy forwarding, rendering mode toggles (ssr: false), and script execution restrictions (noScripts).
The framework exposes an operational mismatch between client-side routing resolution and server-side request evaluation. By default, Nuxt configures client-side page routing with case-insensitive path matching (router.options.sensitive: false). Under this configuration, an incoming request for /Admin/secret resolves to the same Vue page component as /admin/secret.
Prior to version 4.6.2, Nitro evaluated server-side routeRules strictly against the raw case-sensitive path string provided in the HTTP request line. When an HTTP request contained character casing that differed from the rule definitions in nuxt.config.ts, Nitro failed to match the defined route rule and returned an empty directive set. Consequently, the request bypassed server-side protections while successfully rendering the underlying page component.
The fundamental flaw lies in inconsistent path normalization across the architectural boundary separating Nitro's server router and Nuxt's page router. Classified under CWE-178 (Improper Handling of Case Sensitivity) and CWE-863 (Incorrect Authorization), the vulnerability occurs because Nitro's internal router matched request paths literally without applying case-folding transformations when router.options.sensitive was disabled.
Consider a scenario where an application configures a security restriction or redirect rule in nuxt.config.ts:
export default defineNuxtConfig({
routeRules: {
'/admin/**': { redirect: { to: '/login', statusCode: 307 } },
'/docs': { headers: { 'x-docs-security': '1' } },
'/app/spa': { ssr: false }
}
})When a client issues an HTTP request for GET /Admin/dashboard, Nitro's request handler invokes getRouteRules(event). The matcher evaluates /Admin/dashboard against the stored key /admin/**. Because of the exact-match requirement in the radix tree comparison, the lookup fails to identify the rule and returns {}.
Following rule evaluation, the execution pipeline hands off request processing to the Vue page renderer. The client-side page router evaluates /Admin/dashboard, normalizes the route path case-insensitively, and renders app/pages/admin/dashboard.vue. The client receives the response without the enforcement of the intended redirect or security headers.
Security fix f6cfee52cf9576ddc4f4ee83b486969328b358f8 by Daniel Roe addresses the discrepancy by introducing unified case normalization in Nitro's server runtime.
The fix introduces a dedicated server plugin (packages/nitro-server/src/runtime/plugins/route-rules.ts) and a normalized matching utility (packages/nitro-server/src/runtime/utils/route-rules.ts). The new implementation case-folds both configured keys and runtime HTTP path strings unless router.options.sensitive is explicitly enabled.
import { defu } from 'defu'
import type { H3Event } from 'h3'
import { useRuntimeConfig } from 'nitropack/runtime'
import type { NitroRouteRules } from 'nitropack/types'
import { createRouter, toRouteMatcher } from 'radix3'
import type { RouteMatcher } from 'radix3'
import { withoutBase } from 'ufo'
import { normalizeRouteRulePath } from '#internal/nuxt/route-rules.mjs'
let matcher: RouteMatcher | undefined
function getMatcher (): RouteMatcher {
if (!matcher) {
const routes: Record<string, NitroRouteRules> = {}
// Normalize each configured route key according to router sensitivity options
for (const [route, rules] of Object.entries(useRuntimeConfig().nitro?.routeRules || {})) {
routes[normalizeRouteRulePath(route)] = rules as NitroRouteRules
}
matcher = toRouteMatcher(createRouter({ routes }))
}
return matcher
}
export function matchRouteRules (path: string): NitroRouteRules {
// Normalize incoming request path prior to radix tree lookup
return defu({}, ...getMatcher().matchAll(normalizeRouteRulePath(path)).reverse()) as NitroRouteRules
}The fix ensures that normalizeRouteRulePath converts all route rule paths and incoming URL targets to lowercase when case-sensitivity is turned off, ensuring parity between server processing and page rendering.
Exploiting CVE-2026-114132 requires no authentication or specialized payload construction. An attacker only needs network access to an affected Nuxt server where security-relevant logic is delegated to routeRules.
Consider an deployment where administrative pages reside under /admin/**, protected by a redirect rule pointing unauthenticated traffic to /login:
# Standard request: Redirect rule triggers as intended
curl -i http://target-app.local/admin/dashboard
HTTP/1.1 307 Temporary Redirect
Location: /login
# Exploitation request: Bypasses server redirect rule, renders page
curl -i http://target-app.local/Admin/dashboard
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
<!-- Rendered administrative dashboard page content -->The operational consequences vary based on the specific directive bypassed:
routeRules.Content-Security-Policy, X-Frame-Options, or custom authorization headers defined under specific path prefixes.ssr: false), causing unexpected server CPU load or memory usage.The technical impact of CVE-2026-114132 is categorized as moderate integrity and confidentiality loss (CVSS v4.0 Score: 6.3). The CVSS vector is CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N.
The vulnerability does not grant arbitrary code execution or direct file system access. Instead, it degrades security controls that rely exclusively on server-side path rules. If application security relies on routeRules for access control or header-based security policies, those policies can be silently subverted.
> [!NOTE]
> Access control checks implemented within custom middleware (server/middleware/), page middleware (defineNuxtRouteMiddleware), or component data fetching methods (useAsyncData / useFetch) process paths independently and are not vulnerable to this bypass.
The primary remediation for CVE-2026-114132 is updating the nuxt dependency to version 4.6.2 or higher in the project root.
# Upgrade via pnpm
pnpm update nuxt@^4.6.2
# Upgrade via npm
npm install nuxt@^4.6.2
# Upgrade via yarn
yarn add nuxt@^4.6.2If immediate dependency upgrades are not possible, administrators can apply a temporary workaround in nuxt.config.ts by explicitly enabling case-sensitive routing:
// nuxt.config.ts
export default defineNuxtConfig({
router: {
options: {
sensitive: true
}
}
})> [!IMPORTANT]
> Configuring sensitive: true inside app/router.options.ts is insufficient to patch this vulnerability. The Nitro server engine reads the configuration directly from nuxt.config.ts during build time.
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N| Product | Affected Versions | Fixed Version |
|---|---|---|
nuxt nuxt | >= 4.1.3, < 4.6.2 | 4.6.2 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-178 / CWE-863 |
| CVSS v4.0 Vector | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N |
| CVSS Score | 6.3 (Medium) |
| EPSS Score | 0.00314 (23.05th percentile) |
| Attack Vector | Network (Unauthenticated HTTP) |
| Exploit Status | Proof of Concept in Fix Commit |
| CISA KEV Status | Not Listed |
The software does not correctly handle case sensitivity when processing user input, leading to unexpected behavior or security rule bypasses.
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.
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.
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.
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.
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.
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.