Skip to main content

webpack-dev-server CVE-2026-14620

| EUVDEUVD-2026-41558 MEDIUM
Cross-Site Request Forgery (CSRF) (CWE-352)
2026-07-03 openjs GHSA-f5vj-f2hx-8m93
4.7
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Lure developer to attacker-controlled webpage
  2. Delivery
    Browser auto-issues cross-origin GET to localhost dev server
  3. Exploit
    Invoke /open-editor with traversal file path
  4. Execution
    OS spawns editor process opening target file
  5. Persist
    Spam /webpack-dev-server/invalidate
  6. Impact
    Force repeated bundle recompilations degrading workstation

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires three concurrent conditions on the developer's workstation: (1) webpack-dev-server 5.2.5 or earlier must be actively running and listening on a known or guessable port (commonly 8080, 3000, or similar defaults); (2) the developer must visit a web page controlled by or injected with attacker content - a single passive page load suffices, no click-through interaction is needed beyond navigation; (3) the browser must be able to reach the localhost dev server port, which is the default state for any browser on the same machine. Exploitation is limited to: developer workstations only (not production servers); the specific port the dev server is bound to; and the 5.2.5-and-earlier codebase. No authentication is required because dev server endpoints are intentionally unauthenticated. The CVSS PR:N confirms no credential requirement. The file-opening impact is bounded by the OS user permissions of the process running the editor - root-owned files would require the developer to run as root, which is non-default.

Impact

The CVSS 3.1 base score of 4.7 (Medium) with vector AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:L correctly reflects that no authentication is required and the scope change (S:C) captures the boundary crossing from browser to local OS. However, several signals suggest the real-world developer-impact is higher than the numerical score implies: the open-editor endpoint accepts arbitrary file paths with no apparent sanitization, meaning sensitive files such as SSH keys or tokens could be surfaced in the editor even though the attacker cannot exfiltrate them remotely (hence C:N is defensible but represents an indirect exposure risk). UI:R is technically accurate but the required interaction is trivially achieved - a single page load via a phishing link, malicious ad, or compromised npm documentation page suffices. No EPSS data was provided in the input, so exploitation probability is not quantifiable. No CISA KEV listing and no confirmed POC exists, suggesting this has not yet been broadly weaponized. The attack surface is narrowly constrained to active development sessions, which limits blast radius but makes developer-targeted supply-chain campaigns a plausible threat scenario.

Exploit ScenarioDerived

A developer running webpack-dev-server 5.2.5 on localhost port 8080 clicks a phishing link in a Slack message or visits a page with a malicious advertisement. The page's JavaScript fires a GET request to http://localhost:8080/webpack-dev-server/open-editor?fileName=../../.ssh/id_rsa, which causes the developer's configured editor to open the SSH private key file with no visible warning, while a concurrent loop of requests to /webpack-dev-server/invalidate forces continuous recompilation cycles that slow the workstation. No POC has been publicly identified, but the attack requires no exploit complexity beyond standard JavaScript fetch calls.

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

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

Alert me

AnalysisAIv1 – Jul 03, 2026

Cross-site request forgery in webpack-dev-server 5.2.5 and earlier allows any website visited by a developer to silently invoke two unauthenticated state-changing endpoints - /webpack-dev-server/open-editor and /webpack-dev-server/invalidate - via simple browser-initiated GET requests that carry no CSRF protection. An attacker controlling a web page visited during an active dev session can open arbitrary local files in the developer's editor (including files outside the project root) and trigger repeated forced recompilations that degrade workstation performance. No public exploit has been identified at time of analysis, and exploitation is confined to developer workstations rather than production infrastructure.

RemediationAI

Upgrade to webpack-dev-server 5.2.6, which is the vendor-released patch confirmed by the OpenJS Foundation CNA and the GitHub Security Advisory GHSA-f5vj-f2hx-8m93. No workarounds are identified - the advisory explicitly states none exist, so the upgrade is the only supported remediation path. Teams should update their package.json devDependencies or lockfiles accordingly and re-run dependency installation. As a defense-in-depth measure independent of patching, webpack-dev-server should never be bound to a non-loopback interface during development; if firewall or network policy enforcement prevents localhost-only binding, blocking inbound connections to the dev server port at the host firewall will prevent cross-origin browser requests from reaching the endpoints. Note that this network-level control does not mitigate the attack if the malicious page is loaded on the same machine as the dev server.

Affected VersionsENISA

webpack-dev-server 0 <5.2.6

Affected Packages

npm webpack-dev-server fix: 5.2.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

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 a Node.js HTTP server used during frontend JavaScript development to serve hot-module-replacement bundles; it exposes several internal HTTP endpoints for tooling integration. The affected product (CPE: cpe:2.3:a:webpack-dev-server:webpack-dev-server:*:*:*:*:*:*:*:*) binds these endpoints on localhost and accepts GET requests without validating the Origin header, a Referer allowlist, or any CSRF token. CWE-352 (Cross-Site Request Forgery) is the root cause: browsers automatically include cookies and follow cross-origin GET requests without triggering a CORS preflight, so a visiting page can reach http://localhost:<port>/webpack-dev-server/open-editor?fileName=<path> freely. The open-editor endpoint passes the fileName parameter to the OS shell to launch an editor process, and there is no path restriction preventing traversal outside the project root.

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 MEDIUM
NVD 4.7 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:L
vuln.today AI 4.7 MEDIUM

Browser-driven CSRF over network, no auth on dev server, scope crosses to local OS editor; only availability degraded via recompilation spam.

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

Primary rating from Vendor (openjs).

CVSS VectorNVD

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

Lifecycle Timeline

1
Patch available
Jul 03, 2026 - 18:01 EUVD

DescriptionNVD

webpack-dev-server versions 5.2.5 and earlier expose two internal developer endpoints, /webpack-dev-server/open-editor and /webpack-dev-server/invalidate, that perform state-changing actions on any GET request without verifying that the request originated from the dev server's own page. Any website a developer visits while the dev server is running can trigger these endpoints cross-origin with no interaction beyond the visit. An attacker can open an arbitrary existing local file in the developer's editor, including files outside the project root, and repeated requests can spawn editor processes and force recompilations that degrade the developer's machine. Patches: upgrade to webpack-dev-server 5.2.6. Workarounds: none.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
High
core dev dependency for JavaScript frontend projects globally
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL Exploit-DB 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 MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.1%
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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 12 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected

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