Nuxt dev server exposes generated appSecret through Vite file serving
cve-program · CVE-2026-119201
PublishedNuxt is an open-source web development framework for Vue.js. From 4.6.0 until 4.6.3, nuxt dev stores a generated appSecret in <buildDir>/app-secret, by default .nuxt/app-secret, within a directory allowed by Vite's server.fs configuration. A client with direct HTTP access to an exposed development server can fetch the file, use deriveSecret() to compute derived secrets such as the default useSession password, and forge session cookies accepted by that development server. The default localhost binding limits remote exposure, cross-origin browser reads are blocked, production builds and development servers with an explicitly configured appSecret are not affected. This issue is fixed in version 4.6.3.
Read the publisher's advisoryeuvd · EUVD-2026-113372
PublishedNuxt is an open-source web development framework for Vue.js. From 4.6.0 until 4.6.3, nuxt dev stores a generated appSecret in <buildDir>/app-secret, by default .nuxt/app-secret, within a directory allowed by Vite's server.fs configuration. A client with direct HTTP access to an exposed development server can fetch the file, use deriveSecret() to compute derived secrets such as the default useSession password, and forge session cookies accepted by that development server. The default localhost binding limits remote exposure, cross-origin browser reads are blocked, production builds and development servers with an explicitly configured appSecret are not affected. This issue is fixed in version 4.6.3.
Read the publisher's advisorynvd · CVE-2026-119201
PublishedNuxt is an open-source web development framework for Vue.js. From 4.6.0 until 4.6.3, nuxt dev stores a generated appSecret in <buildDir>/app-secret, by default .nuxt/app-secret, within a directory allowed by Vite's server.fs configuration. A client with direct HTTP access to an exposed development server can fetch the file, use deriveSecret() to compute derived secrets such as the default useSession password, and forge session cookies accepted by that development server. The default localhost binding limits remote exposure, cross-origin browser reads are blocked, production builds and development servers with an explicitly configured appSecret are not affected. This issue is fixed in version 4.6.3.
Read the publisher's advisoryosv · GHSA-3xf4-9g3c-4h4w
Published### Impact When no `appSecret` is configured (via `NUXT_APP_SECRET`, `NITRO_APP_SECRET` or `runtimeConfig.appSecret`), `nuxt dev` generates a development secret and stores it in `<buildDir>/app-secret` (by default `.nuxt/app-secret`). The build directory is inside the directories that Nuxt passes to Vite's `server.fs.allow`, so the file can be fetched from the dev server: ```bash curl http://<dev-server>/_nuxt/@fs/<absolute-path-to-project>/.nuxt/app-secret ``` Anyone who can read it can compute every secret derived from it with `deriveSecret()`, including the default password used by `useSession`, and so can forge session cookies accepted by that dev server. Exploitation requires direct HTTP access to the dev server. `nuxt dev` listens on localhost by default, so this mainly affects dev servers that are exposed to a network (for example with `--host`, a published container port or a tunnel). A malicious website cannot read the file through a developer's browser: Vite's CORS and host checks prevent pages on other origins from reading the response. Production builds never generate an `appSecret` and are not affected. Dev servers with an explicitly configured `appSecret` do not use the generated file. ### Patches Fixed in `@nuxt/vite-builder` 4.6.3, which `nuxt` 4.6.3 depends on. The dev server now adds `app-secret` to Vite's `server.fs.deny`, keeping Vite's default deny list. ### Workarounds Set `NUXT_APP_SECRET` in `.env` to a random value of at least 32 characters (for example the output of `openssl rand -base64 32`), or avoid exposing the dev server to untrusted networks. If a dev server using a generated secret has been reachable by untrusted clients, delete `.nuxt/app-secret` (a new secret is generated on the next `nuxt dev`) or set `NUXT_APP_SECRET`. Either invalidates existing dev sessions.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-119201 · CVE overview and exploitation status
cve-program · CVE-2026-119201
- https://github.com/nuxt/nuxt/security/advisories/GHSA-3xf4-9g3c-4h4w
- https://github.com/nuxt/nuxt/commit/2981290f36d9c5412c022758f3d89ba21a845308
- https://github.com/nuxt/nuxt/commit/545004cc350be7003dea4116ce6206d6f980b1fd
- https://github.com/nuxt/nuxt/releases/tag/v4.6.3
euvd · EUVD-2026-113372
- https://github.com/nuxt/nuxt/security/advisories/GHSA-3xf4-9g3c-4h4w
- https://github.com/nuxt/nuxt/commit/2981290f36d9c5412c022758f3d89ba21a845308
- https://github.com/nuxt/nuxt/commit/545004cc350be7003dea4116ce6206d6f980b1fd
- https://github.com/nuxt/nuxt/releases/tag/v4.6.3
nvd · CVE-2026-119201
- https://github.com/nuxt/nuxt/commit/2981290f36d9c5412c022758f3d89ba21a845308
- https://github.com/nuxt/nuxt/commit/545004cc350be7003dea4116ce6206d6f980b1fd
- https://github.com/nuxt/nuxt/releases/tag/v4.6.3
- https://github.com/nuxt/nuxt/security/advisories/GHSA-3xf4-9g3c-4h4w
osv · GHSA-3xf4-9g3c-4h4w
- https://github.com/nuxt/nuxt/security/advisories/GHSA-3xf4-9g3c-4h4w
- https://nvd.nist.gov/vuln/detail/CVE-2026-119201
- https://github.com/nuxt/nuxt/commit/2981290f36d9c5412c022758f3d89ba21a845308
- https://github.com/nuxt/nuxt/commit/545004cc350be7003dea4116ce6206d6f980b1fd
- https://github.com/nuxt/nuxt
- https://github.com/nuxt/nuxt/releases/tag/v4.6.3
Related changes
Linked by CVE identifier- Nuxt is an open-source web development framework for Vue.js. From 4.6.0 until 4.6.3, nuxt dev stores a generated appSecret in <buildDir>/app-secret, by default .nuxt/app-secret, within a directory allowed by Vite's server.fs configuration. … · Advisory content revised · 1 Nov 2026
- Nuxt dev server exposes generated appSecret through Vite file serving · Newly collected advisory · 30 Oct 2026