All vulnerabilities

Servers and applications

GHSA-vrh2-cfcx-c3fg

Incomplete fix for GHSA-f3x9-2chm-73c8: a repeated or leading encoded slash in the request path bypasses route rules on catch-all page routes

Severity
Medium 6.5
Published
24 Nov 2026
Last changed
24 Nov 2026
Added to UpHeron
24 Nov 2026
Fixed in
4.0.0, 4.7.0
Weakness
CWE-436Incorrect authorization (CWE-863)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read some data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Sources
Project advisories (GitHub)

Description

Nuxt matches route rules against the request path with repeated slashes left as they are, while the page router still resolves such a path to a catch-all page route. A request that doubles a slash (//admin/secret, /docs//internal/guide) or spells one as a leading %2F (/%2Fadmin/secret) can therefore render a page through a catch-all route without the route rules configured for the path it resolves to. The fix for GHSA-f3x9-2chm-73c8 covered an encoded slash between two segments but not these forms.

An unauthenticated attacker can bypass route rules that protect paths served by a catch-all page route, or by a custom route whose param can span several segments.

With app/pages/docs/[...slug].vue, /docs/internal/guide runs auth, but /docs//internal/guide and /docs/%2Finternal/guide render the same page without running auth and without the header. With a root app/pages/[...slug].vue, //admin/secret and /%2Fadmin/secret are rendered instead of redirected.

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

Workarounds

Reject page requests whose path contains a repeated or encoded slash in a server middleware:

This also rejects legitimate uses, such as an API route that takes a scoped package name (@scope%2Fname) as a param; narrow the check to the path prefixes your route rules protect if you need those.

A reverse proxy or CDN that merges repeated slashes and rejects or decodes encoded slashes before forwarding the request also removes the mismatch.

Workarounds as given by nuxt/nuxt's security advisory.

Affected software

SoftwareAffected versions
NuxtServers and applications · github:nuxt/nuxt
  • From 3.0.0 before 4.0.0
  • From 4.0.0 before 4.7.0

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,545,145npm, 22 Nov 2026
GitHub stars
61,096GitHub, 22 Nov 2026
Forks
5,828GitHub, 22 Nov 2026
Latest release
v4.6.4GitHub, 22 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