Technical impact
Nuxt’s development server for versions 4.6.0 through 4.6.2 stores a generated appSecret in a file that is served by Vite’s HTTP file‑serving component. The secret file can be retrieved by any client that has direct HTTP access to the development server. An attacker can read the file, use the provided deriveSecret function to compute derived secrets such as the default session password, and then forge session cookies that are accepted by the development server. Because the vulnerability is an information disclosure that enables credential forgery, it is classified as CWE‑552. The impact is that an unauthenticated user can gain authenticated access to the development server, potentially exposing sensitive data or executing code in that environment.
Affected Systems
This issue affects the Nuxt open‑source framework, specifically versions 4.6.0, 4.6.1, and 4.6.2. The vulnerability exists only in dev servers that use the default generated appSecret and are bound to the default localhost interface. Production builds, any dev server configured with an explicit appSecret, or servers that are not exposed over a network are not vulnerable.
Risk and Exploitability
The CVSS score of 4.8 indicates moderate severity. The EPSS score is unavailable, and the vulnerability is not listed in the CISA KEV catalog, suggesting it is not currently being widely exploited. Nonetheless, the exploit requires an attacker to reach the development server over HTTP, which is unlikely if the server is correctly bound to localhost and protected by network controls. If a dev server is inadvertently exposed, an attacker could retrieve the secret file, calculate a valid session cookie, and authenticate as a privileged user, facilitating further misuse of the development environment.
Github GHSA