Servers and applications
GHSA-h5xj-x893-p5f7
Nuxt dev server exposes private runtime config through earlier Nitro build output
- Severity
- Low 3.7
- Published
- 24 Nov 2026
- Last changed
- 24 Nov 2026
- Added to UpHeron
- 24 Nov 2026
- Fixed in
- 4.0.0, 4.7.0
- Attack
- Over the network · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Read some data
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N- Sources
- Project advisories (GitHub)
Description
The Vite dev server started by nuxt dev serves the server bundles left behind by an earlier nuxt build or nuxt generate. Nitro inlines the resolved runtimeConfig into those bundles, so private runtime config values resolved at build time can be read by anyone with HTTP access to an exposed dev server. This is an incomplete fix for GHSA-648h-gw55-m2g7, which covered the Nitro development bundle but not production build output in the same project.
nuxt build writes the Nitro server bundle to .output/server/, and nuxt generate writes a prerender bundle to /prerender/ (.nuxt/prerender/ or node_modules/.cache/nuxt/.nuxt/prerender/). Both are inside the directories the dev server is allowed to serve, so a later nuxt dev serves them:
The response contains every private runtime config value that was resolved when that build ran, such as a secret read from .env in nuxt.config:
Workarounds
Avoid exposing the dev server to untrusted networks. Alternatively, set private runtime config keys to an empty default in nuxt.config and provide their values with the matching NUXT_* environment variables (for example runtimeConfig: { apiSecret: '' } with NUXT_API_SECRET in .env), or remove .output, .nuxt/prerender and node_modules/.cache/nuxt before running nuxt dev (in a monorepo, for every app in the workspace).
If a dev server has been reachable by untrusted clients, rotate any credentials that were set through runtimeConfig in nuxt.config.
Affected software
| Software | Affected versions |
|---|---|
NuxtServers and applications · github:nuxt/nuxt |
|
About Nuxt
JavaScript framework
- 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
| Release | Latest | Security fixes |
|---|---|---|
| 4 | 4.6.4 | Yes |
| 3 | 3.21.11 | Ended 31 Jul 2026 |
| 2 | 2.18.1 | Ended 30 Jun 2024 |
| 1 | 1.4.5 | Ended 21 Sept 2019 |
From endoflife.date.
Vulnerabilities in Nuxt
- In our list
- 45
- Published in the last 12 months
- 42
- Critical, last 12 months
- 1
- High, last 12 months
- 8
- Known exploited
- 0
- GHSA-jxc9-w3j6-pwp2Nuxt route rules for a page are not applied to its `_payload.json`, so redirects, proxies, headers and cache exclusions can be bypassedMedium 6.5 24 Nov 2026
- GHSA-vrh2-cfcx-c3fgIncomplete fix for GHSA-f3x9-2chm-73c8: a repeated or leading encoded slash in the request path bypasses route rules on catch-all page routesMedium 6.5 24 Nov 2026
- CVE-2023-54417Nuxt 3.0.0 < 3.4.2 Unauthenticated File Read via vite-node Dev ServerHigh 8.7 18 Nov 2026
- CVE-2023-54418Nuxt 3.0.0-rc.1 < 3.0.0-rc.13 Unauthenticated Arbitrary File Read via Vite Dev ServerHigh 8.7 18 Nov 2026
- CVE-2026-128077Nuxt: Incomplete fix for GHSA-9v7c-q64q-vv33: a leading `//` in the request path bypasses `server/middleware` path checks and server route rules on page routesMedium 6.5 2 Nov 2026
- CVE-2026-128076Nuxt: Colliding island props can share one `/__nuxt_island` path (incomplete fix for CVE-2026-46342)Low 3.1 2 Nov 2026
References
- GitHub Advisory Database https://github.com/advisories/GHSA-h5xj-x893-p5f7
- github.com https://github.com/nuxt/nuxt/security/advisories/GHSA-h5xj-x893-p5f7