Oct 23, 2026·5 min read·13 visits
An interpretation conflict in Nuxt allows unauthenticated users to bypass route rules and appMiddleware by sending percent-encoded URLs, leading to unauthorized access to server-side rendered page content.
Nuxt versions 3.11.0 through 3.21.3 and 4.0.0 through 4.4.3 contain an interpretation conflict between the route rules matching engine and the core page routing mechanism. By submitting percent-encoded request path segments, unauthenticated attackers can bypass route rules, including appMiddleware authorization guards, and access rendered server-side page payloads.
Nuxt is an open-source web development framework built on top of Vue.js, facilitating server-side rendering (SSR), static site generation, and route-based server configurations. The framework allows developers to define routeRules in nuxt.config.ts or page metadata. These rules configure server behaviors such as appMiddleware, redirect, appLayout, ssr, and caching strategies for specific endpoint patterns.
An interpretation conflict exists between Nuxt's routeRules lookup engine and its core page router. Affected versions compare incoming requests against configured routeRules using the raw, percent-encoded URI string. Conversely, the underlying Vue page router decodes route parameters prior to executing route matching and rendering page handlers.
When an HTTP request contains percent-encoded characters in path segments, the routeRules engine fails to match the unencoded rule keys registered in the application configuration. Consequently, attached middleware—such as authentication or authorization checks—is skipped, while the page router successfully decodes the path and renders the protected resource payload.
The vulnerability stems from inconsistent URL path normalization across different architectural layers of the framework. Route rules declared in the application configuration or page metadata are indexed into a compiled matcher instance in unencoded UTF-8 format (for example, /route-rules/admin or /route-rules/测试).
When an incoming HTTP request is processed, the runtime lookup generated in #build/route-rules.mjs evaluated the raw, raw-encoded path argument (path). If an attacker sends a request using percent-encoding—such as /route-rules/%61dmin or /route-rules/%E6%B5%8B%E8%AF%95—the literal string comparison inside the lookup matcher fails to identify the entry.
Because the lookup returns an empty rule set, security controls such as appMiddleware guards are omitted. Immediately following this lookup, the Nuxt core page router processes the request, unescapes the path parameters, matches the target file-system page component, and executes server-side rendering without enforcing the intended route rules.
To resolve this issue, Nuxt implemented path normalization functions (decodeRoutePath and normalizeRouteRulePath) that decode percent-encoded sequences prior to route rule indexing and runtime matching.
The remediation introduces decodeRoutePath in packages/nuxt/src/core/utils/index.ts to decode non-reserved characters while preserving query parameters and avoiding double-decoding risks:
export function decodeRoutePath (path: string) {
if (!path.includes('%')) { return path }
const queryIndex = path.indexOf('?')
const pathname = queryIndex === -1 ? path : path.slice(0, queryIndex)
try {
return queryIndex === -1 ? decodeURI(pathname) : decodeURI(pathname) + path.slice(queryIndex)
} catch {
return path
}
}The helper normalizeRouteRulePath in packages/nuxt/src/core/utils/route-rules.ts handles case-folding and unescaping uniform keys:
export function normalizeRouteRulePath (path: string, fold: boolean): string {
const decoded = decodeRoutePath(path)
return fold ? decoded.toLowerCase() : decoded
}In addition, the server generator in packages/nitro-server/src/index.ts was updated to inject string normalization into the runtime lookup function, ensuring raw request strings are normalized before rule querying.
Exploitation requires no authentication or specialized tooling. An attacker targets an endpoint protected by a route rule configured with appMiddleware (for example, a route rule protecting /admin with an auth middleware guard).
Instead of requesting GET /admin, the attacker encodes one or more characters within the path string, submitting GET /%61dmin or GET /admi%6e. The request arrives at the server where the unpatched routeRules matcher compares /%61dmin against /admin. The matcher fails to locate a matching rule key, evaluating the rule set to empty.
The request is then passed to the page router. The router decodes /%61dmin to /admin, resolves the corresponding page component (pages/admin.vue), and executes server-side rendering. The resulting SSR HTML output and inline data payload are returned to the unauthenticated requester, bypassing the authorization check entirely.
The CVSS v3.1 score for this vulnerability is 6.5 (Medium). The primary impact is a partial loss of confidentiality and integrity due to unauthorized access to gated SSR page content and state payloads.
Because the route rule bypass affects auxiliary flags—such as redirect, appLayout, ssr, prerender, and caching behaviors—applications relying on global route rules for security enforcement or conditional page delivery are vulnerable to data leakage.
This vulnerability does not directly grant arbitrary code execution or write permissions on the underlying server filesystem. However, sensitive information rendered in SSR payloads (such as user profile data, administrative UI layouts, or internal API responses) can be accessed by unauthorized entities.
To remediate CVE-2026-114131, organizations should upgrade nuxt to version 3.21.4 (or patch release v3.21.11 / v4.5.2) for 3.x deployments, or 4.4.4 for 4.x deployments.
If immediate framework updates are not possible, reverse proxies or Web Application Firewalls (WAF) should be configured to normalize percent-encoded path sequences prior to forwarding HTTP requests to the upstream Nuxt server.
As a defense-in-depth practice, critical authorization logic should be implemented directly within individual page component guards, server middleware (server/middleware/), or API route handlers (server/api/), rather than relying solely on global routeRules configuration entries.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
nuxt nuxt | >= 3.11.0, < 3.21.4 | 3.21.4 |
nuxt nuxt | >= 4.0.0, < 4.4.4 | 4.4.4 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-436 / CWE-863 |
| Attack Vector | Network (Unauthenticated) |
| CVSS v3.1 Score | 6.5 (Medium) |
| EPSS Score | 0.00289 (~20th percentile) |
| Impact | Middleware Bypass / SSR Data Confidentiality Loss |
| Exploit Status | Proof-of-Concept Available |
| CISA KEV Status | Not Listed |
The software processes the same input in different contexts using different interpretations, allowing security controls to be bypassed.
CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.
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.