All vulnerabilities

Servers and applications

CVE-2026-128075

Nuxt exposes the message and data of unhandled errors thrown during server rendering

Severity
Medium 5.3
Published
2 Nov 2026
Last changed
13 Nov 2026
Added to UpHeron
13 Nov 2026
Fixed in
4.0.0, 4.6.4
Weakness
Information exposure through error messages (CWE-209)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Also known as
GHSA-96x6-fvhx-49hg
Sources
CVE Program, Project advisories (GitHub)

Description

When a page, plugin or route middleware throws an error that is not an HTTP error, Nuxt wraps it with createError before rendering the error page. The wrapped error was treated as one the app raised deliberately, so in production its message and data were sent to the client in the error page payload (NUXT_DATA) and in JSON error responses. For a failed $fetch, that is the URL that was requested (including its query string) and the body of the upstream error response.

An application is affected if server-rendered code lets an error with sensitive details reach the error page, for example:

Anyone who can make the request fail (for example by requesting an id the upstream service rejects) receives [GET] "http://users.internal/users/1?token=...": 502 and the upstream response body. This happens regardless of what a custom error.vue renders, because the details are part of the payload. With the default configuration, the HTTP status line is not affected.

From nuxt/nuxt's security advisory. Shortened; the full text is there.

Workarounds

Catch errors from server-side requests and rethrow them with only the details the client may see:

Alternatively, add a Nitro plugin that hides the details of errors Nuxt wrapped. This also hides the details of a createError called with an Error (or with a cause):

If secrets such as tokens in upstream URLs may have been exposed this way, rotate them.

Workarounds as given by nuxt/nuxt's security advisory.

Affected software

SoftwareAffected versions
NuxtServers and applications · cna:nuxt|nuxt
  • From 3.0.0 before 4.6.4
NuxtServers and applications · github:nuxt/nuxt
  • From 3.0.0 before 4.0.0
  • From 4.0.0 before 4.6.4

References