Advisories for Npm/@Nuxt/Vite-Builder package

2026

Nuxt dev server exposes generated appSecret through Vite file serving

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: 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, …

2025