Skip to main content

webpack-dev-server EUVDEUVD-2026-108108

| CVE-2026-112085 HIGH
Origin Validation Error (CWE-346)
2026-10-22 openjs
8.2
CVSS 3.1 · Vendor: openjs
View

Attack ChainAIDerived

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

  1. Access
    Lure developer to malicious web page
  2. Exploit
    Script opens cross-origin WebSocket upgrade
  3. Execution
    Dev server forwards unvalidated upgrade to proxy backend
  4. Impact
    Attacker reads and writes proxied backend data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Origin validation
Exploitation Conditions

Exploitation requires a devServer.proxy entry explicitly configured with ws:true (WebSocket forwarding); without that proxy/ws configuration the gap does not exist, so default configurations without proxied WebSockets are not affected. It further requires that a developer, while the dev server is running, visit an attacker-controlled web page (UI:R) that scripts a cross-origin WebSocket - the upgrade bypasses the middleware chain and therefore the allowedHosts/Host/Origin checks that already refuse the same route over plain HTTP. Loopback binding does NOT mitigate it because the browser originates the connection. Limiting factors: non-default proxy ws:true configuration, required developer interaction with a malicious page, and the dev-time-only nature of the server. The vendor states omitting ws:true from proxy entries that do not need it and scoping proxy context to specific paths as workarounds, with upgrading to 5.2.7 or 6.1.0 as the fix.

Impact

The CVSS 3.1 base score of 8.2 (AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N) is driven largely by the scope change (S:C) and high confidentiality impact: an unauthenticated, network-reachable attacker needs only low complexity, but does require user interaction (UI:R) because a developer must visit a malicious page while the dev server is running. Two signals are missing from the input: no EPSS probability is provided and the vulnerability is not listed in CISA KEV, so there is no confirmed active exploitation. No verified exploit code is present either - the only references are the vendor GHSA advisory and the OpenJSF CNA page, not a PoC. The vuln.today decision label is 'this_week', indicating a prompt but non-emergency priority, which is consistent with the KEV/EPSS picture. The practical risk is materially constrained by two factors the raw score understates: exploitation only works when a proxy entry is explicitly configured with ws:true (a non-default setting), and it requires the developer to be socially engineered into loading attacker-controlled content. This is a genuine development-environment supply-chain/SSRF-style exposure worth patching this week, not a mass-exploitable internet-facing RCE.

Exploit ScenarioDerived

A developer runs webpack-dev-server with a devServer.proxy entry configured with ws:true and, while that server is listening (even on loopback), visits a malicious web page in a browser. Attacker JavaScript on that page opens a cross-origin WebSocket to the dev server, which forwards the upgrade to the proxied backend without Host/Origin validation, letting the page read from and write to that backend. No public exploit is identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Oct 22, 2026

Cross-origin WebSocket access in webpack-dev-server before 5.2.7 and in 6.0.0 lets a malicious web page, visited by a developer while the dev server runs, reach a proxied backend through the dev server without Host or Origin validation. The gap exists only when a devServer.proxy entry is configured with ws:true, and it bypasses the allowedHosts checks that already block the same route over plain HTTP-even if the server is bound to loopback. No public exploit identified at time of analysis; the vendor fixed the issue in 5.2.7 and 6.1.0.

RemediationAI

Upgrade webpack-dev-server to 5.2.7 or 6.1.0 (or later) to receive the fix, which applies the same Host and Origin validation to proxied WebSocket upgrades as the HMR WebSocket. If upgrading immediately is not possible, omit ws:true from devServer.proxy entries whose backends do not need WebSocket forwarding-this stops WebSocket proxying for those APIs and may break development features that rely on it-and scope the proxy context to specific paths to reduce the routes that can be reached. Vendor advisory: https://github.com/webpack/webpack-dev-server/security/advisories/GHSA-cfqc-fj3v-j925.

Affected VersionsENISA

webpack-dev-server 6.0.0 <6.1.0
webpack-dev-server 0 <5.2.7

Affected Packages

euvd webpack_dev_server fix: 5.2.7, 6.1.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

webpack-dev-server is the development server for webpack projects, providing live reloading and an HMR WebSocket. Its devServer.proxy option can be configured with ws:true to forward WebSocket connections to a backend during development. In affected versions, non-HMR WebSocket upgrade requests sent to such proxy entries are forwarded to the proxy target without passing through the middleware chain that enforces allowedHosts and Host/Origin validation. Because the same route over plain HTTP is refused by those checks, the weakness is specific to upgrade requests: a browser on a malicious page can open a cross-origin WebSocket to the loopback-bound dev server and read from or write to the proxied backend. This is an origin validation error (CWE-346); the fix applies the same Host and Origin validation to proxied WebSocket upgrades that the HMR WebSocket already uses. The affected npm package is covered by CPE cpe:2.3:a:webpack-dev-server:webpack-dev-server:*:*:*:*:*:*:*:*.

Know when Webpack Dev Server 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 (openjs) PRIMARY 8.2 HIGH
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
vuln.today AI 8.2 HIGH

Browser-originated attack needs no dev-server privileges (PR:N) but requires the developer to visit a malicious page (UI:R); forwarding to a separate proxied backend crosses scope (S:C) with read and write access (C:H/I:L).

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N
Red Hat 8.2 HIGH

Primary rating from Vendor (openjs).

CVSS VectorVendor: openjs

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch available
Oct 22, 2026 - 11:16 EUVD
CVE Published
Oct 22, 2026 - 09:31 cve.org
HIGH 8.2

DescriptionCVE.org

webpack-dev-server is a development server that provides live reloading for webpack projects. In versions before 5.2.7 and in version 6.0.0, when a proxy entry is configured to forward WebSockets, the server forwards non-HMR WebSocket upgrade requests to the proxy target without validating the Host or Origin headers, so the allowedHosts protection does not apply to those proxied upgrades. A malicious web page visited by a developer can open a cross-origin WebSocket through the dev server and read from and write to the proxied backend, even when the server is bound to loopback. The issue is fixed in webpack-dev-server 5.2.7 and 6.1.0, where proxied WebSocket upgrades pass the same Host and Origin validation as the HMR WebSocket, and users should upgrade to one of those versions or later. As a workaround, omit WebSocket forwarding from proxy entries that do not need it and scope the proxy to specific paths.

Technical POC Analysis

The flaw is an origin validation error, CWE-346 (the advisory also maps CWE-1385, Missing Origin Validation in WebSockets).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

The webpack-dev-server vulnerability (CVE-2026-112085) affects development environments where a proxy with WebSocket support is configured. A malicious webpage could bypass existing host checks to reach backend systems, potentially exposing sensitive internal services. Leadership should prioritize remediation because developers' local machines often have elevated access to critical infrastructure.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include disabling WebSocket proxying (ws:true) in devServer.proxy settings, restricting development server network access to trusted hosts, and ensuring developers do not visit untrusted web pages while the server is running.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
High
extremely popular webpack build dependency present on most JS developer machines
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor CIRCL GitHub VulDB

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 HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

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