Vulnerability library
Security checkOctober 30, 2026

Nuxt dev server exposes generated appSecret through Vite file serving

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpm@nuxt/vite-builder

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

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:

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.

Recommendation

Update the @nuxt/vite-builder package to the latest compatible version. Followings are version details:

  • Affected version(s): >= 4.6.0, < 4.6.3
  • Patched version(s): 4.6.3

References

Could your website be exposed too?

SmartScanner can check your website for Nuxt dev server exposes generated appSecret through Vite file serving and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated October 30, 2026