Description
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.
Published: 2026-07-03
Score: 4.7 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

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. Because the implementation lacks proper CSRF protection (CWE‑352), HTTP method validation (CWE‑749), and includes a vulnerability identified as CWE‑940, any website a developer visits while the dev server is running can trigger these endpoints cross‑origin with only a 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, force recompilations, and degrade the developer’s machine.

Affected Systems

The vulnerability affects the webpack‑dev‑server product. Affected versions include 5.2.5 and all earlier releases.

Risk and Exploitability

The CVSS base score is 4.7, indicating a moderate severity. The EPSS score of <1% indicates a very low but non‑zero probability that this vulnerability will be exploited. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector is a cross‑origin request from any website visited while the dev server is running; the attacker does not need to deliver any payload or perform user interaction beyond visiting the site. Successful exploitation grants the attacker the ability to execute editor processes on the developer’s machine and read arbitrary files, which could lead to further local compromise.

Generated by OpenCVE AI on July 22, 2026 at 13:14 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade webpack‑dev‑server to version 5.2.6 or later to remove the vulnerable endpoints that exploit CWE‑352 and CWE‑749 weaknesses.
  • If upgrading immediately is not possible, isolate the development environment by restricting network access to the server or placing the dev server behind a firewall that only allows localhost connections, preventing external sites from reaching the endpoints.
  • During development, restrict browser usage to trusted sites and avoid visiting untrusted URLs to reduce the opportunity for cross‑origin requests to reach the vulnerable endpoints.

Generated by OpenCVE AI on July 22, 2026 at 13:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-f5vj-f2hx-8m93 webpack-dev-server vulnerable to cross-site request forgery via internal developer endpoints
History

Mon, 06 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 06 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-940
References
Metrics threat_severity

None

threat_severity

Moderate


Fri, 03 Jul 2026 17:15:00 +0000

Type Values Removed Values Added
Description 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.
Title webpack-dev-server vulnerable to cross-site request forgery via internal developer endpoints
Weaknesses CWE-352
CWE-749
References
Metrics cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:L'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: openjs

Published:

Updated: 2026-07-06T15:54:51.519Z

Reserved: 2026-07-03T16:50:55.559Z

Link: CVE-2026-14620

cve-icon Vulnrichment

Updated: 2026-07-06T15:54:46.287Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-03T17:00:00Z

Links: CVE-2026-14620 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-22T13:15:12Z

Weaknesses
  • CWE-352

    Cross-Site Request Forgery (CSRF)

  • CWE-749

    Exposed Dangerous Method or Function

  • CWE-940

    Improper Verification of Source of a Communication Channel