Information Exposure Affecting nuxt package, versions >=3.0.0 <4.0.0>=4.0.0 <4.6.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.31% (25th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Information Exposure vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-NUXT-22552241
  • published15 Nov 2026
  • disclosed13 Nov 2026
  • creditabhijit_dave

Introduced: 13 Nov 2026

NewCVE-2026-128075  (opens in a new tab)
CWE-209  (opens in a new tab)

How to fix?

Upgrade nuxt to version 4.0.0, 4.6.4 or higher.

Overview

Affected versions of this package are vulnerable to Information Exposure via the server-side error handling path in createErrorFromThrown, when a page, plugin, or route middleware throws a non-HTTP error during server rendering. Nuxt wraps the thrown value with createError and incorrectly treats it as an error deliberately exposed by the application, causing the original message and data to be included in the error page payload (__NUXT_DATA__) and JSON error responses in production. An attacker who can trigger a server-side error - for example by supplying an input that causes a $fetch call to fail - receives the full upstream error message and data, which may include internal URLs, query-string secrets, response bodies, or database host names, regardless of what a custom error.vue renders.

Note: Errors created deliberately with createError or showError, errors returned by useFetch or useAsyncData, and server/api routes are not affected.

Workaround

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

try {
  await $fetch(url)
} catch (error) {
  throw createError({ statusCode: 502, statusMessage: 'Upstream request failed' })
}

Alternatively, add a Nitro plugin (server/plugins/hide-error-details.ts) that sets unhandled: true and clears data on any error whose cause is a non-h3 Error instance.

CVSS Base Scores

version 4.0
version 3.1