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
- 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.
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.
Affected software
| Software | Affected versions |
|---|---|
NuxtServers and applications · cna:nuxt|nuxt |
|
NuxtServers and applications · github:nuxt/nuxt |
|
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-128075
- GitHub Advisory Database https://github.com/advisories/GHSA-96x6-fvhx-49hg
- github.com https://github.com/nuxt/nuxt/security/advisories/GHSA-96x6-fvhx-49hg