All vulnerabilities

Servers and applications

CVE-2026-53721

Route-rule middleware bypass via case-sensitivity mismatch between vue-router and the routeRules matcher

Severity
High
Published
2 Jun 2026
Last changed
10 Jun 2026
Added to UpHeron
3 Nov 2026
Fixed in
3.21.7, 4.4.7
Exploit chance
0.4% in the next 30 daysHigher than 34% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Case-sensitivity mistakes (CWE-178)Incorrect authorization (CWE-863)
Also known as
GHSA-mm7m-92g8-7m47
Sources
Project advisories (GitHub)

Description

Nuxt looks up routeRules for the current navigation by calling getRouteRules({ path: to.path }) from the page-router plugin and the no-pages router plugin. The compiled routeRules matcher (built on rou3) performs case-sensitive matching, while vue-router is configured with its default sensitive: false and matches paths case-insensitively.

The two routers therefore disagree on which rules apply to a given request path: vue-router still matches the page record for /Admin/dashboard, but the routeRules lookup for the same path returns no match. Any appMiddleware declared via routeRules is never added to the middleware set and never runs, on both SSR and client navigations. The same path skips other path-keyed route rules in the same way (ssr, redirect, appLayout, and the prerender / payload hints used client-side).

For applications using routeRules with appMiddleware as an authorization gate (a documented pattern), an attacker can flip the case of any static segment in a protected URL…

From nuxt/nuxt's security advisory. Shortened; the full text is there.

Workarounds

Until you can upgrade, you can mitigate by either:

  • Setting router.options.sensitive = true so vue-router matches case-sensitively (this changes route-matching behaviour app-wide).
  • Moving security-critical middleware off routeRules.appMiddleware and onto definePageMeta({ middleware: [...] }) on the protected page components, which is bound to the matched record.
  • Enforcing authorization at the API / data-fetching layer (which you should be doing in any case).
Workarounds as given by nuxt/nuxt's security advisory.

Affected software

SoftwareAffected versions
NuxtServers and applications · github:nuxt/nuxt
  • From 3.11.0 before 3.21.7
  • From 4.0.0 before 4.4.7

About Nuxt

JavaScript framework

From Wikidata, CC0 1.0.
Developers who used it in the past year
4%Stack Overflow Developer Survey 2025, 2025
Weekly downloads (npm)
3,404,733npm, 15 Nov 2026
GitHub stars
61,078GitHub, 15 Nov 2026
Forks
5,837GitHub, 15 Nov 2026
Latest release
v4.6.4GitHub, 15 Nov 2026
Released
2 Nov 2026GitHub
License
MIT LicenseWikidata
Written in
JavaScript, Vue.jsWikidata
First published on GitHub
26 Oct 2016GitHub

Release lines

ReleaseLatestSecurity fixes
44.6.4Yes
33.21.11Ended 31 Jul 2026
22.18.1Ended 30 Jun 2024
11.4.5Ended 21 Sept 2019

From endoflife.date.

References