Origin Validation Error Affecting @nuxt/rspack-builder package, versions >=3.12.2 <4.0.0>=4.0.0 <4.6.4


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.14% (4th 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 IDSNYK-JS-NUXTRSPACKBUILDER-22556139
  • published15 Nov 2026
  • disclosed13 Nov 2026
  • creditAnthropic

Introduced: 13 Nov 2026

NewCVE-2026-128072  (opens in a new tab)
CWE-346  (opens in a new tab)

How to fix?

Upgrade @nuxt/rspack-builder to version 4.0.0, 4.6.4 or higher.

Overview

@nuxt/rspack-builder is a rspack bundler for Nuxt

Affected versions of this package are vulnerable to Origin Validation Error via the development middleware's origin validation logic, which trusts Origin, Referer, or Sec-Fetch-Site: same-origin headers when the Host header names the same hostname. After a DNS rebinding attack redirects an attacker-controlled hostname to a loopback address, a malicious page opened while nuxt dev is running can issue requests that the middleware accepts as same-origin, allowing the page to read /_nuxt/*.js client chunks and inline source maps. This exposes compiled application source, local filesystem paths, and any developer-controlled values inlined into the client bundle, such as those injected via a custom DefinePlugin. With the rspack builder, the HMR websocket also accepts connections from the rebound hostname.

Note: This is only exploitable when the webpack or rspack builder is used for development (builder: 'webpack' or builder: 'rspack'); the default Vite builder and production builds are unaffected.

Workaround

Use the default Vite builder for development, or use Chrome 142+ or another Chromium-based browser that enforces Local Network Access restrictions and avoid opening untrusted sites in other browsers while the dev server is running.

CVSS Base Scores

version 4.0
version 3.1