All vulnerabilities

Servers and applications

GHSA-jxc9-w3j6-pwp2

Nuxt route rules for a page are not applied to its `_payload.json`, so redirects, proxies, headers and cache exclusions can be bypassed

Severity
Medium 6.5
Published
24 Nov 2026
Last changed
24 Nov 2026
Added to UpHeron
24 Nov 2026
Fixed in
3.20.0, 4.2.0
Weakness
CWE-436CWE-524Incorrect 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

Route rules set for a page's own path are not applied to the page's payload URL (/_payload.json). When a catch-all rule caches pages, that URL falls back to the catch-all rule and renders the page anyway. This skips the page's redirect, proxy, headers, ssr: false and cache exclusion rules, and returns the data the page fetched during server rendering as cacheable JSON.

With the following configuration:

GET /admin redirects to /login and GET /internal is proxied, but GET /admin/_payload.json and GET /internal/_payload.json render those pages on the server and respond with 200 and the data the page fetched with useFetch or useAsyncData, without the configured headers. GET /account is not cached, but GET /account/_payload.json is returned with the cache headers of the '/**' rule.

An application is affected only if all of the following are true:

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

Workarounds

Add a wildcard rule with the same value next to each exact-path rule, so the payload URL is covered:

For a single-segment wildcard such as '/team/*', add '/team/**'. Access checks in server middleware, in route middleware attached with definePageMeta, or in the API the page fetches from are not affected, and are the more robust place to enforce access. If personal pages may already have been cached, purge the CDN cache after upgrading or applying the workaround.

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

Affected software

SoftwareAffected versions
NuxtServers and applications · github:nuxt/nuxt
  • From 3.0.0 before 3.20.0
  • From 4.0.0 before 4.2.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