Skip to main content

Nuxt webpack-builder CVE-2026-45670

| EUVDEUVD-2026-36419 MEDIUM
Exposed Dangerous Method or Function (CWE-749)
2026-05-19 https://github.com/nuxt/nuxt GHSA-6m52-m754-pw2g
5.9
CVSS 4.0 · Vendor: https://github.com/nuxt/nuxt
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker hosts malicious page on same local network
  2. Delivery
    Developer opens malicious page in non-Chrome-142+ browser while dev server is running with --host
  3. Exploit
    Malicious JavaScript injects script tag pointing to dev server LAN IP
  4. Install
    Browser omits Sec-Fetch-* headers (non-trustworthy HTTP origin)
  5. C2
    Middleware same-origin check bypassed
  6. Execute
    Webpack chunk globals exposed in browser window
  7. Impact
    Full application source code extracted and exfiltrated

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Dangerous method exposure prevention
Exploitation Conditions

Three concurrent conditions are required for exploitation: (1) The Nuxt project must use the webpack or rspack builder, not the default Vite builder - this is a deliberate non-default configuration requiring explicit installation of @nuxt/webpack-builder or @nuxt/rspack-builder and configuration in nuxt.config.ts; (2) The dev server must be started with --host or equivalent configuration that binds to a non-loopback network interface, exposing port 3000 (or configured port) on the local network - the default localhost-only binding is not vulnerable; (3) The developer must open a page controlled by the attacker in a browser that does not enforce local network access restrictions - Chrome 142+ and compatible Chromium browsers are immune due to the local network access restriction feature, limiting exploitation to Firefox, Safari, and older Chromium versions. This is strictly a development-environment vulnerability; production builds and production server deployments are entirely unaffected.

Impact

CVSS vector data is not available for this CVE, preventing quantitative scoring. Risk signals must be inferred from advisory content and contextual factors. The attack surface is scoped exclusively to developer workstations: production Nuxt deployments are entirely unaffected. Exploitation requires a non-default configuration (--host flag) and a social engineering component (developer must visit an attacker-controlled page while the dev server is running). However, the consequence - full application source code exposure including business logic, API routes, and any secrets embedded in dev builds - can be materially harmful, particularly in open-plan offices, conference networks, or shared Wi-Fi environments. A working proof-of-concept is published in the vendor advisory itself, substantially lowering the barrier to exploitation. Chrome 142+ and Chromium-based browsers implementing local network access restrictions are immune, which further narrows the realistically exploitable population. EPSS data is absent; no CISA KEV listing exists. Overall: moderate real-world priority - high consequence but significantly bounded by non-default configuration and specific network conditions.

Exploit ScenarioDerived

A developer on a shared office or conference network runs nuxt dev --host with the rspack builder, binding the dev server to a LAN IP such as 192.168.0.31:3000. An attacker on the same network (or who can get the developer to visit a page) hosts a malicious site containing JavaScript that injects a script tag pointing to http://192.168.0.31:3000/_nuxt/app.js; because the malicious page is served over plain HTTP from a non-localhost origin, the developer's Firefox browser omits Sec-Fetch-* headers, and the middleware same-origin check passes. The attacker's script then iterates the exposed webpackChunk* globals, extracting and transmitting all module source files - including server-side logic, internal API routes, and any development credentials present in the build. A working proof-of-concept demonstrating this exact attack is included verbatim in the GitHub advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 19, 2026

Source code disclosure in Nuxt's webpack and rspack dev server middleware enables a malicious website on the same local network to exfiltrate full application source code when developers run nuxt dev --host. The previous fix for GHSA-4gf7-ff8x-hq99 relied exclusively on Sec-Fetch-Mode and Sec-Fetch-Site headers, which browsers only send from potentially trustworthy origins (HTTPS or localhost) per the W3C Fetch Metadata specification - requests originating from plain HTTP pages on LAN omit these headers entirely, bypassing the same-origin check. A working proof-of-concept is embedded in the vendor advisory; no public exploit identified at time of analysis in CISA KEV.

RemediationAI

The primary fix is to upgrade to nuxt@3.21.6 or nuxt@4.4.6, which deliver patched versions of both @nuxt/webpack-builder and @nuxt/rspack-builder with the corrected same-origin middleware (see PR #35051 at https://github.com/nuxt/nuxt/pull/35051). If immediate upgrade is not feasible, three specific workarounds are available: (1) Stop using nuxt dev --host and bind exclusively to localhost (the default), using SSH tunneling or a reverse proxy for remote device access - this eliminates the attack surface entirely with no functional trade-off for most workflows; (2) Switch to the Vite builder for development, which is not affected and is already the default in current Nuxt versions; (3) Enforce use of Chrome 142+ or another Chromium-based browser with local network access restrictions enabled, which blocks cross-origin requests to LAN IPs at the browser level - note this is a client-side control only and does not protect developers using Firefox or older Chromium versions. Advisory: https://github.com/nuxt/nuxt/security/advisories/GHSA-6m52-m754-pw2g.

Affected VersionsENISA

nuxt 3.15.4, < 3.21.6
nuxt 4.0.0-alpha.1, < 4.4.6

Affected Packages

npm @nuxt/rspack-builder fix: 3.21.6, 4.4.6
npm @nuxt/webpack-builder fix: 3.21.6, 4.4.6
euvd nuxt_3_15_4 fix: 3.21.6
euvd nuxt_4_0_0_alpha_1 fix: 4.4.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in the dev middleware for @nuxt/webpack-builder and @nuxt/rspack-builder npm packages, classified under CWE-749 (Exposed Dangerous Method or Function). The incomplete prior fix enforced same-origin access control by checking Sec-Fetch-Mode: no-cors and Sec-Fetch-Site: cross-site request headers. However, per the W3C Fetch Metadata specification (https://w3c.github.io/webappsec-fetch-metadata/), browsers only append these headers when the request originates from a 'potentially trustworthy URL' - meaning HTTPS or localhost. When the Nuxt dev server is bound to a LAN IP via --host, cross-origin requests from plain HTTP pages on the same network bypass this check because the browser never sends the Sec-Fetch-* headers. The patch in PR #35051 introduces an isSameOriginRequest() function that falls back to comparing the Origin or Referer header host against the Host header when Sec-Fetch-Site is absent, closing the bypass. The default Vite builder was not affected; only the webpack and rspack builders contain the vulnerable middleware code path.

Know when Node.js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/nuxt/nuxt) PRIMARY 5.9 MEDIUM
CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/nuxt/nuxt) · only source for this CVE.

CVSS VectorVendor: https://github.com/nuxt/nuxt

Attack Vector
Adjacent
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jun 12, 2026 - 14:22 NVD
5.9 (MEDIUM)

DescriptionCVE.org

Summary

This is an incomplete fix for GHSA-4gf7-ff8x-hq99. Source code may be stolen during dev when using the webpack / rspack builder if the dev server is bound to a non-loopback address (e.g. nuxt dev --host) and the developer opens a malicious site on the same network.

Details

The fix for GHSA-4gf7-ff8x-hq99 relied on Sec-Fetch-Mode and Sec-Fetch-Site headers. Because these headers are sent by the browsers only for potentially trustworthy origins, the check is able to bypass for non-potentially trustworthy origins.

Since the attack requires the website to be accessible via a non-potentially trustworthy origin, only apps that are using --host is affected.

PoC

  1. Create a nuxt project with webpack / rspack builder.
  2. Run npm run dev
  3. Open http://localhost:3000
  4. Run the script below in a web site that has a different origin.
  5. You can see the source code output in the document and the devtools console.
js
const script = document.createElement('script')
script.src = 'http://192.168.0.31:3000/_nuxt/app.js' // NOTE: replace with the IP address the dev server listens to
script.addEventListener('load', () => {
  const key = Object.keys(window).find(k => k.startsWith("webpackChunk"))
  for (const page in window[key]) {
    const moduleList = window[key][page][1]
    console.log(moduleList)

    for (const key in moduleList) {
      const p = document.createElement('p')
      const title = document.createElement('strong')
      title.textContent = key
      const code = document.createElement('code')
      code.textContent = moduleList[key].toString()
      p.append(title, ':', document.createElement('br'), code)
      document.body.appendChild(p)
    }
  }
})
document.head.appendChild(script)

(This script is the similar with GHSA-4gf7-ff8x-hq99 except for the script.src and the global variable name)

Impact

Users using webpack / rspack builder may get the source code stolen by malicious websites if it uses a predictable host and also is using --host.

This vulnerability does not affect Chrome 142+ (and other Chromium based browsers) users due to the local network access restriction feature.

Patches

Fixed in nuxt@4.4.6 and nuxt@3.21.6 by #35051. The dev-middleware same-origin check now falls back to comparing the request's Origin / Referer host against Host when Sec-Fetch-* headers are absent, closing the non-trustworthy-origin bypass.

The fix only ships for the @nuxt/webpack-builder and @nuxt/rspack-builder packages. The default Vite builder was not affected.

Workarounds

If you cannot upgrade immediately:

  • Don't use nuxt dev --host. Bind the dev server to localhost (the default) and tunnel from other devices via SSH or a reverse proxy that enforces same-origin checks.
  • Use Chrome 142+ or another Chromium-based browser that enforces local network access restrictions.
  • Switch to the Vite builder for development.

Threat Intelligence Overview

EPSS Score
0.0%
Top 94% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Controlled
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy