{"vuln_id":"GHSA-x2wv-5868-p7v2","aliases":["CVE-2026-128072","GHSA-4gf7-ff8x-hq99","GHSA-6m52-m754-pw2g","GHSA-x6qj-4h56-5rj5"],"description":"@nuxt/webpack-builder and @nuxt/rspack-builder dev server serves built source to DNS rebinding pages","published_at":"2026-11-16T15:00:09Z","modified_at":"2026-11-16T15:00:13Z","first_seen_at":"2026-11-21T19:15:20.335112Z","severity":"low","severity_source":"ghsa","cvss_score":3.1,"cvss_vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N","cwe":["CWE-346"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-x2wv-5868-p7v2"},"matched_alias":null,"items":[{"id":2594,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-x2wv-5868-p7v2 / CVE-2026-128072: @nuxt/webpack-builder and @nuxt/rspack-builder dev server serves built source to DNS rebinding pages","summary":"@nuxt/webpack-builder and @nuxt/rspack-builder dev server serves built source to DNS rebinding pages\n\n### Summary\n\nWhen using the webpack or rspack builder, the dev server serves built client chunks to any request whose `Host` header matches its `Origin`/`Referer`, or that carries `Sec-Fetch-Site: same-origin`. After a DNS rebinding attack both headers name the attacker's hostname, so a malicious page opened while `nuxt dev` is running can read `/_nuxt/*.js` and exfiltrate the app's source. This bypasses the same-origin check added for [GHSA-4gf7-ff8x-hq99](https://github.com/nuxt/nuxt/security/advisories/GHSA-4gf7-ff8x-hq99), [GHSA-6m52-m754-pw2g](https://github.com/nuxt/nuxt/security/advisories/GHSA-6m52-m754-pw2g) and [GHSA-x6qj-4h56-5rj5](https://github.com/nuxt/nuxt/security/advisories/GHSA-x6qj-4h56-5rj5).\n\n### Impact\n\nA developer runs `nuxt dev` with `builder: 'webpack'` or `builder: 'rspack'` (the default config is enough; `--host` is not required) and opens a page on an attacker-controlled hostname, for example `http://rebind.attacker.example:3000/`. The attacker then re-points that hostname at `127.0.0.1`. Requests from the page now reach the dev server as same-origin requests:\n\n```bash\ncurl -H 'Host: rebind.attacker.example:3000' -H 'Sec-Fetch-Site: same-origin' http://127.0.0.1:3000/_nuxt/app.js\n# 200, with the compiled modules\n```\n\nThe page can read the response with `fetch`, which exposes the compiled source and its inline source maps, module identifiers, the developer's local filesystem paths, and any developer-controlled values inlined into the client bundle (for example through a custom `DefinePlugin`). With rspack, the HMR websocket also accepts connections from the rebound hostname. Private `runtimeConfig` is not part of the client bundle.\n\nThe attacker needs to know or guess the dev server port and to time the DNS change. Chrome 142+ and other Chromium-based browsers that enforce [Local Network Access restrictions](https://developer.chrome.com/release-notes/142#local_network_access_restrictions) prompt before a public page can reach a loopback address.\n\nThe default Vite builder is not affected: Vite rejects unknown `Host` headers through `server.allowedHosts`. Production builds are not affected.\n\n### Patches\n\nFixed in `@nuxt/webpack-builder` 4.6.4 and `@nuxt/rspack-builder` 4.6.4. The dev middleware now rejects requests whose `Host` header is not `localhost`, `*.localhost`, an IP address, or a hostname allowed by the new `devServer.allowedHosts` option or by `vite.server.allowedHosts`, before any `Sec-Fetch-Site`/`Origin`/`Referer` checks. This includes `devServer.host` and the hosts `nuxt dev` allows for the addresses it listens on; `nuxt dev --public` allows any host, as it does with Vite. With rspack, the same list is passed to rsbuild's `server.allowedHosts`, which covers the HMR websocket.\n\nWhen accessing the dev server through another hostname, for example through a reverse proxy, add that hostname to `devServer.allowedHosts` (a leading `.` also allows subdomains; true allows any host).\n\nNuxt 3 has reached end of life an\n\nAffected packages: npm:@nuxt/rspack-builder, npm:@nuxt/webpack-builder\nPatched: @nuxt/webpack-builder 4.6.4, @nuxt/rspack-builder 4.6.4","url":"https://github.com/advisories/GHSA-x2wv-5868-p7v2","published_at":"2026-11-16T15:00:09Z","updated_at":"2026-11-16T15:00:13Z","fetched_at":"2026-11-21T19:15:18.416960Z","severity":"low","cvss_score":3.1,"epss":0.00136,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"@nuxt/webpack-builder","vuln_id":"CVE-2026-128072","vuln_ids":["CVE-2026-128072","GHSA-4GF7-FF8X-HQ99","GHSA-6M52-M754-PW2G","GHSA-X2WV-5868-P7V2","GHSA-X6QJ-4H56-5RJ5"],"tags":["ghsa","npm","CWE-346"],"cluster_id":2638,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2594","html":"https://vulnwatch.ve1ve2.com/item/2594"}},{"id":5692,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-128072: 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 midd…","summary":"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.\n\nReferences:\nhttps://github.com/nuxt/nuxt/commit/3c9645326a2b3f5cfa09c9a935db9b1825d560e7\nhttps://github.com/nuxt/nuxt/commit/3e1c7964e6843e1c5f218867a4ccd4cd00ad9ebb\nhttps://github.com/nuxt/nuxt/commit/8c11d965dad5bfc58d4c25e796915aec045acb78\nhttps://github.com/nuxt/nuxt/commit/f8d64c9aa773a033596532365d455890da9da197\nhttps://github.com/nuxt/nuxt/releases/tag/v4.6.4\nhttps://github.com/nuxt/nuxt/security/advisories/GHSA-x2wv-5868-p7v2","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-128072","published_at":"2026-11-13T18:17:35.243000Z","updated_at":"2026-11-16T19:17:35.273000Z","fetched_at":"2026-11-21T19:15:31.481257Z","severity":"low","cvss_score":3.1,"epss":0.00136,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-128072","vuln_ids":["CVE-2026-128072","GHSA-4GF7-FF8X-HQ99","GHSA-6M52-M754-PW2G","GHSA-X2WV-5868-P7V2","GHSA-X6QJ-4H56-5RJ5"],"tags":["CWE-346"],"cluster_id":2639,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/5692","html":"https://vulnwatch.ve1ve2.com/item/5692"}}]}