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-71315

CVE-2026-71315: Nuxt route rules silently dropped for mixed-case paths, bypassing appMiddleware auth gates (incomplete fix for CVE-2026-53721)

Amit Schendel
Amit Schendel
Senior Security Researcher

Aug 6, 2026·7 min read·46 visits

Executive Summary (TL;DR)

Nuxt route rules are silently bypassed for mixed-case paths due to a key-matching case mismatch, allowing unauthenticated attackers to skip authorization checks.

An security bypass vulnerability exists in Nuxt frameworks where route rules containing mixed-case characters are silently dropped during case-insensitive routing. This occurs because lookups are folded to lowercase, but keys are stored in their original casing in the route-matching trie. As a result, critical authorization middleware, such as appMiddleware, is bypassed, allowing unauthorized access to restricted pages.

Vulnerability Overview

Nuxt is an open-source web development framework built on top of Vue.js. To implement centralized security rules, authentication checks, and rendering behaviors, Nuxt relies on application-level route rules defined within the framework configuration. These rules map specific URL paths to critical settings such as authorization guards (appMiddleware), server-side rendering configurations (ssr), and caching behaviors. The routing layer processes client requests and applies these middleware definitions prior to page rendering.

The vulnerability identified as CVE-2026-71315 arises from improper case-sensitivity handling within this routing layer. It constitutes an incomplete patch for a predecessor vulnerability, CVE-2026-53721. While the client request paths are matched case-insensitively by default inside the front-end router (vue-router), the backing route rules engine fails to apply matching policies correctly when mixed-case paths are requested. This mismatch results in security-critical middleware being silently dropped.

An unauthenticated remote attacker can exploit this discrepancy to bypass administrative authentication gates and access restricted pages. Because the router matches the URL and serves the corresponding page, but the rule engine fails to register the matching security policy, the targeted page is rendered without executing the specified security middleware. This leads to a complete bypass of client-side or server-side authorization controls on the affected routes.

Root Cause Analysis

The core of the vulnerability lies in the structural discrepancy between how the client-side routing library (vue-router) and the matching trie structure (rou3) process URL paths. By default, Nuxt configures routing in a case-insensitive manner to ensure standard web compatibility. This means that a client request to /admin or /Admin is routed to the exact same component, typically generated from a Vue file structure such as pages/Admin.vue.

To prevent routing bypasses in previous versions (specifically CVE-2026-53721), the framework developers attempted to force case insensitivity during the rule-matching phase. They achieved this by converting the incoming client-requested path to lowercase via .toLowerCase() before querying the route rules engine. However, this normalization was only performed on one half of the lookup pair. The keys representing the compiled route rules were still stored verbatim in the rou3 matching tree.

If an application registers a route rule using a mixed-case or capitalized key, such as /Admin/**, the rule is stored in the trie with those exact uppercase characters. When a client requests /admin, the incoming path is folded to lowercase /admin and compared against the trie. Because /admin does not match /Admin/** in the case-sensitive trie engine, the lookup fails and returns an empty rule set. The framework then renders the route without enforcing the associated security controls.

Code Analysis

The vulnerability stems from the compile-time generation of the route rules dictionary and the run-time lookup logic. The vulnerable codebase utilized a forced lowercase normalization during runtime lookups inside packages/nuxt/src/app/composables/manifest.ts:

// Vulnerable lookup logic in packages/nuxt/src/app/composables/manifest.ts
export function getRouteRules (arg: string | H3Event | { path: string }) {
  const path = typeof arg === 'string' ? arg : arg.path
  try {
    // The path was forcibly converted to lowercase, causing mismatches
    // with case-sensitive route keys registered in the router.
    return routeRulesMatcher(path.toLowerCase())
  } catch (e) {
    manifestDiagnostics.NUXT_E5003({ path, cause: e })
    return {}
  }
}

The fix implemented in commits 6199633 and ad624a7 addresses this by generating two distinct matchers during build-time compilation. The build system evaluates the application configuration to determine if router.options.sensitive is active. It then constructs a verbatim sensitiveMatcher and a case-folded foldedMatcher within packages/nitro-server/src/index.ts. If routing is case-insensitive, the keys within the foldedMatcher are normalized to lowercase during initialization.

// Patched build-time key folding in packages/nitro-server/src/index.ts
const caseSensitiveRouteRules = !!nuxt.options.router.options.sensitive
const foldRouteRuleKey = (route: string) => caseSensitiveRouteRules || typeof route !== 'string' ? route : route.toLowerCase()
 
function getRouteRulesRouter (fold: boolean) {
  const routeRulesRouter = createRou3Router<NitroRouteRules>()
  if (nuxt._nitro) {
    const foldedKeys = new Map<string, string>()
    for (const [route, rules] of Object.entries(nuxt._nitro.options.routeRules)) {
      if (route === '/__nuxt_error') { continue }
      if (validManifestKeys.every(key => !(key in rules))) { continue }
      // Key is folded to lowercase if folding is enabled
      const key = fold && typeof route === 'string' ? route.toLowerCase() : route
      if (fold) {
        const existing = foldedKeys.get(key)
        if (existing !== undefined && existing !== route && !caseSensitiveRouteRules) {
          logger.warn(`Route rules match collision...`)
        }
        foldedKeys.set(key, route)
      }
      addRoute(routeRulesRouter, undefined, key, rules)
    }
  }
  return routeRulesRouter
}

Additionally, the forced .toLowerCase() call was removed from the runtime client composable. This ensures that when case sensitivity is explicitly enabled, the original path casing is preserved, preventing structural regressions while maintaining reliable matching under default case-insensitive conditions.

Exploitation Method

To exploit this vulnerability, an attacker must identify an application that relies on Nuxt route rules to enforce middleware-level authorization. The vulnerability requires that the target application has declared route rules using mixed-case paths (e.g., /Admin/** or /SecureDash/**) and is running a vulnerable version of Nuxt. Furthermore, the routing configuration must be set to the default case-insensitive mode.

The attack relies on sending HTTP requests that trigger a mismatch inside the route engine while remaining valid in the page router. An attacker targeting a protected admin page situated at pages/Admin.vue sends an unauthenticated HTTP GET request to /admin. Because vue-router resolves paths case-insensitively, it maps /admin to the administrative page component and proceeds to execute rendering.

During this rendering phase, Nuxt queries the route rules matcher to load the configuration for /admin. The matcher folds the lookup path to /admin but queries a trie containing only /Admin/**. Finding no match, the rule engine returns empty results. The application-level security middleware (appMiddleware), which would normally intercept unauthorized requests, is never executed. The server then transmits the rendered restricted interface directly to the attacker.

Impact Assessment

The security impact of CVE-2026-71315 is rated High, with a CVSS v3.1 base score of 8.2. The primary consequence is the total bypass of application-level authorization controls, leading to unauthorized access to restricted features, administrative panels, and sensitive data. Since the bypass is executed entirely through standard client requests, exploitation requires no prior privileges or user interaction.

The vulnerability compromises the integrity of defense-in-depth architectures. When developers place authentication checks exclusively in nuxt.config.ts route rules (such as specifying token verification in appMiddleware), they assume these gates are infallible entry points. This vulnerability invalidates that assumption, exposing internal APIs and administrative workflows directly to the public internet.

Although the vulnerability does not directly allow remote code execution, the unauthorized administrative access achieved can be leveraged as a stepping stone. Attackers can abuse exposed administrative workflows to modify database records, disclose proprietary data, or compromise user sessions. The lack of public exploit code does not diminish the severity, as exploitation involves simple path manipulation.

Remediation & Workarounds

The most effective resolution is upgrading the Nuxt dependency to a patched release. For applications running on the 3.x branch, upgrade to version 3.21.10 or higher. Applications running on the 4.x branch must upgrade to version 4.5.1 or higher. These updates ensure that compiled route rules are properly synchronized with runtime lookups.

If an immediate upgrade is not feasible, developers must normalize their configurations to mitigate the risk. Modify all routeRules declared in nuxt.config.ts to be strictly lowercase (e.g., rename /Admin/** to /admin/**). This alignment eliminates the casing mismatch between the trie keys and the runtime lookups.

Alternatively, applications can transition to case-sensitive routing by configuring router.options.sensitive: true inside the Nuxt configuration file. As a final defensive measure, avoid relying solely on global configuration rules for access control. Implement component-level authorization checks inside page setup scripts using definePageMeta or inline route guards to ensure robust protection.

Official Patches

NuxtNuxt v3.21.10 Release Notes
NuxtNuxt v4.5.1 Release Notes

Fix Analysis (2)

Technical Appendix

CVSS Score
8.2/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

Affected Systems

Nuxt Framework

Affected Versions Detail

Product
Affected Versions
Fixed Version
Nuxt
Nuxt
>= 3.21.7, < 3.21.103.21.10
Nuxt
Nuxt
>= 4.4.7, < 4.5.14.5.1
AttributeDetail
CWE IDCWE-178 / CWE-863
Attack VectorNetwork (AV:N)
CVSS Severity8.2 (High)
Exploit StatusNo public PoC or active exploitation
ImpactAuthorization Bypass & Data Disclosure
Vulnerable ComponentNuxt Route Rules Matcher

MITRE ATT&CK Mapping

T1068Exploitation for Privilege Escalation
Privilege Escalation
CWE-178
Improper Handling of Case Sensitivity

The software does not properly handle case sensitivity when processing names or identifiers, leading to security bypasses or unexpected behavior.

Vulnerability Timeline

Vendor Security Advisory Released
2026-02-17
Nuxt Patches Released (v3.21.10 and v4.5.1)
2026-02-17

References & Sources

  • [1]GitHub Security Advisory GHSA-hxvh-4h3w-prp9

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

•33 minutes ago•CVE-2026-126298
7.5

CVE-2026-126298: Quadratic Algorithmic Complexity Denial of Service in NLTK Tree.chomsky_normal_form

CVE-2026-126298 (also tracked as GHSA-r53h-rw34-8h97) is an algorithmic complexity Denial of Service (DoS) vulnerability in the Natural Language Toolkit (NLTK) Python library affecting all versions prior to 3.10.4. The vulnerability resides in the nltk.tree.transforms.chomsky_normal_form function and its corresponding public method Tree.chomsky_normal_form(). When transforming a parse tree into Chomsky Normal Form using the default right-factoring strategy, the function repeatedly invokes list.pop(0) inside a loop iterating over all children of a node. In CPython, removing the initial element of a standard list requires an O(N) memory shift operation, causing the overall binarization algorithm to degrade to O(N^2) quadratic time complexity relative to the width of a node. Furthermore, converting horizontal node width into vertical tree depth bypasses initial parsing depth bounds, triggering subsequent stack exhaustion (RecursionError) when recursive methods traverse the mutated structure. Unauthenticated remote attackers who can submit bracketed tree strings to applications invoking this transformation can exhaust single-threaded CPU resources or induce unhandled application exceptions.

Alon Barad
Alon Barad
1 views•12 min read
•about 2 hours ago•CVE-2026-126299
7.5

CVE-2026-126299: Quadratic Algorithmic Complexity Denial of Service in NLTK CCG Lexicon Parser

An algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) before version 3.10.4 allows remote unauthenticated attackers to cause a denial of service via crafted Combinatory Categorial Grammar (CCG) lexicon strings. The parser in nltk.ccg.lexicon.fromstring performs repeated immutable string slicing, concatenation, and regex tail capturing, resulting in O(n^2) CPU consumption when processing wide, flat category definitions.

Alon Barad
Alon Barad
3 views•10 min read
•about 3 hours ago•CVE-2026-126295
7.1

CVE-2026-126295: Path Traversal and Unconfined File Access in NLTK BllipParser

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.

Amit Schendel
Amit Schendel
2 views•11 min read
•about 4 hours 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
3 views•10 min read
•about 5 hours 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
5 views•10 min read
•about 6 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
6 views•9 min read