@nuxt/webpack-builder and @nuxt/rspack-builder dev server serves built source to DNS rebinding pages
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in @nuxt/rspack-builder 4.6.4 and @nuxt/webpack-builder 4.6.4.
Nuxt is an open-source web development framework for Vue.js. From @nuxt/webpack-builder 3.0.0 and @nuxt/rspack-builder 3.12.2 until 4.6.4, the development middleware trusts Origin, Referer, or Sec-Fetch-Site when the Host header names the same attacker-controlled hostname. After DNS rebinding changes that hostname to a loopback address, a malicious page opened by a developer can read /_nuxt/*.js client chunks and inline source maps, exposing compiled application source, local filesystem paths, and developer-controlled values embedded in the client bundle. The attacker must know or guess the development-server port and induce the developer to open the malicious page; Chrome 142 and later and other Chromium-based browsers that enforce Local Network Access restrictions prompt before a public page can reach the loopback address. The default Vite builder and production builds are unaffected. This issue is fixed in version 4.6.4.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| nuxt | >=3.12.2 <4.6.4, >=3.0.0 <4.6.4 | ||
| npm: @nuxt/rspack-builder | >=3.12.2 <4.0.0, >=4.0.0 <4.6.4, >=3.12.2 | 4.6.4 | |
| npm: @nuxt/webpack-builder | >=3.0.0, >=3.0.0 <4.0.0, >=4.0.0 <4.6.4 | 4.6.4 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket