LOW · CVSS 3.1 3.1 EPSS 0.2% · 5th percentile CWE-346

CVE-2026-128072: @nuxt/webpack-builder and @nuxt/rspack-builder dev server serves built source to DNS rebinding pages

Published 2026-11-16 · Updated 2026-11-16 · Also known as GHSA-x2wv-5868-p7v2

Summary

The @nuxt/webpack-builder and @nuxt/rspack-builder development servers are vulnerable to DNS rebinding attacks that allow attackers to exfiltrate compiled source code. Developers using these specific builders in Nuxt projects should update their packages to the latest versions.

Who is affected

Affected deployments include any environment where a Nuxt development server is running with the webpack or rspack builders enabled. An attacker can gain access to the application's compiled source, inline source maps, and local filesystem paths if they can trick a user into visiting a malicious site while the dev server is active and perform a successful DNS rebinding attack.

Exploitability

The vulnerability has a CVSS 3.1 base score of 3.1, indicating low severity, with an attack vector requiring network access and high complexity due to the necessary DNS rebinding timing. With an EPSS score of 0.001, active exploitation is currently statistically unlikely, and CISA KEV reports no active exploitation.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
npm @nuxt/rspack-builder >= 4.0.0, < 4.6.4 4.6.4 npm install @nuxt/[email protected]
npm @nuxt/rspack-builder >= 3.12.2 (no fix published) not published -
npm @nuxt/webpack-builder >= 4.0.0, < 4.6.4 4.6.4 npm install @nuxt/[email protected]
npm @nuxt/webpack-builder >= 3.0.0 (no fix published) not published -

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N

Attack vectorNetwork
Attack complexityHigh
Privileges requiredNone
User interactionRequired
ScopeUnchanged
ConfidentialityLow
IntegrityNone
AvailabilityNone

FAQ

Is the production version of my Nuxt app affected?

No, production builds are not affected; this vulnerability is specific to the local development server.

Does this impact Nuxt 3 users?

Nuxt 3 has reached its end of life and will not receive a fix; users on Nuxt 3 are advised to use the Vite builder as a workaround.

What information can an attacker access?

An attacker can access compiled client chunks, inline source maps, module identifiers, local filesystem paths, and any developer-controlled values inlined into the client bundle.

Original advisory description
### Summary When 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). ### Impact A 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: ```bash curl -H 'Host: rebind.attacker.example:3000' -H 'Sec-Fetch-Site: same-origin' http://127.0.0.1:3000/_nuxt/app.js # 200, with the compiled modules ``` The 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. The 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. The default Vite builder is not affected: Vite rejects unknown `Host` headers through `server.allowedHosts`. Production builds are not affected. ### Patches Fixed 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. When 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). Nuxt 3 has reached end of life and will not receive a fix. ### Workarounds - Use the default Vite builder for development. - Use Chrome 142+ or another Chromium-based browser that enforces Local Network Access restrictions, and don't open untrusted sites in other browsers while the dev server is running. - Treat secrets inlined into the client bundle during development as exposed and rotate them. ### Credits Nuxt thanks Anthropic for reporting this through coordinated disclosure (ANT-2026-VKRM97G5).

References

Source records: GHSA-x2wv-5868-p7v2 (OSV.dev) · EPSS by FIRST, 2026-11-26.