CVE-2026-14620: webpack-dev-server Vulnerable to Cross-Site Request Forgery via Internal Developer Endpoints

webpack-dev-server Updated 21 Jul 2026

Summary

20/07/2026
Yes i
Moderate
4.7

CVE-2026-14620: webpack-dev-server vulnerable to cross-site request forgery via internal developer endpoints. Affects webpack-dev-server versions < 5.2.6. Fixed in 5.2.6. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

webpack-dev-server is a popular development server for webpack, providing live reloading and other features to enhance the development experience. It allows developers to serve their applications and see changes in real-time. However, it has a vulnerability that exposes internal endpoints to cross-site request forgery (CSRF) attacks, potentially compromising the developer's environment.

Vulnerability Detail

The vulnerability arises from the internal endpoints '/webpack-dev-server/open-editor' and '/webpack-dev-server/invalidate', which perform state-changing actions on any GET request without verifying the request's origin. This means that any website a developer visits while the dev server is running can trigger these endpoints without any interaction from the developer. An attacker can exploit this to open arbitrary local files in the developer's editor, including sensitive files outside the project root, and can also spawn editor processes, leading to performance degradation on the developer's machine.

How To Fix

Latest published version: 6.1.0 as of 22 Oct 2026

npm install webpack-dev-server@6.1.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

5.2.6

This is the first release that contains the fix.

npm install webpack-dev-server@5.2.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There are currently no workarounds available for this vulnerability. It is recommended to update to the patched version as soon as possible.

Conclusion

The vulnerability identified as CVE-2026-14620 in webpack-dev-server poses a significant risk due to its potential for cross-site request forgery. Developers are urged to update to version 5.2.6 or later to protect their environments from exploitation. Regular monitoring of dependencies using tools like Vulert can help maintain security.

See every vulnerability recorded for webpack-dev-server →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 4.7, indicating a moderate severity level.

An attacker can open arbitrary files in the developer's editor and spawn editor processes, which can degrade the performance of the developer's machine.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

Currently, there are no workarounds available. The best course of action is to update to the patched version.

The affected versions of webpack-dev-server are those prior to 5.2.6.

Related vulnerabilities

Recent vulnerabilities recorded for webpack-dev-server.

How To Fix

Latest published version: 6.1.0 as of 22 Oct 2026

npm install webpack-dev-server@6.1.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

5.2.6

This is the first release that contains the fix.

npm install webpack-dev-server@5.2.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback