Cross-site Request Forgery (CSRF) Affecting webpack-dev-server package, versions <5.2.6


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Request Forgery (CSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-WEBPACKDEVSERVER-17812733
  • published4 Jul 2026
  • disclosed3 Jul 2026
  • creditPig-Tail

Introduced: 3 Jul 2026

CVE-2026-14620  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade webpack-dev-server to version 5.2.6 or higher.

Overview

webpack-dev-server is an Uses webpack with a development server that provides live reloading. It should be used for development only.

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) via the open-editor and invalidate endpoints. An attacker can open arbitrary local files in the developer's editor and repeatedly trigger recompilations, potentially degrading system performance, by enticing a developer to visit a malicious website while the development server is running.

CVSS Base Scores

version 4.0
version 3.1