CVE-2026-14620: webpack-dev-server vulnerable to cross-site request forgery via internal developer endpoints

Published Jul 3, 2026
·
Updated

Impact

The internal /webpack-dev-server/open-editor and /webpack-dev-server/invalidate endpoints 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 them 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 (e.g. ~/.ssh/config). The file's contents are not returned to the attacker. Repeated requests can also spawn editor processes and force recompilations, degrading the developer's machine.

Patches

Fixed in webpack-dev-server 5.2.6 by rejecting cross-site requests to the /webpack-dev-server/open-editor and /webpack-dev-server/invalidate endpoints (see PR #5698).

Workarounds

None

Other sources

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.

— MITRE

Affected Software

3 affected componentsFixes available
webpack webpack-dev-server<=5.2.5
webpack.js webpack-dev-server<5.2.6
npm/webpack-dev-server<=5.2.5
5.2.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/webpack-dev-server to a version that resolves this vulnerability.

    Fixed in 5.2.6
  2. Upgrade

    Upgrade webpack-dev-server to a version that resolves this vulnerability.

    Fixed in 5.2.6Patch PR #5698

Event History

Jul 3, 2026
CVE Published
via MITRE·05:00 PM
Data Sourced
via MITRE·05:00 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 20, 2026
Advisory Published
via GitHub·10:01 PM
Data Sourced
via GitHub·10:01 PM
DescriptionSeverityWeaknessAffected Software
Aug 17, 2026
Exploit Published
via ExploitDB·12:00 AM
Known Exploited
04:54 PM

Frequently Asked Questions

1

What is the severity of CVE-2026-14620?

CVE-2026-14620 has a medium severity rating of 4.7.

2

How do I fix CVE-2026-14620?

To fix CVE-2026-14620, upgrade to webpack-dev-server version 5.2.6 or later.

3

What types of attacks are possible with CVE-2026-14620?

CVE-2026-14620 allows for cross-site request forgery (CSRF) attacks via vulnerable internal developer endpoints.

4

Which versions of webpack-dev-server are affected by CVE-2026-14620?

webpack-dev-server versions 5.2.5 and earlier are affected by CVE-2026-14620.

5

What are the vulnerable endpoints in CVE-2026-14620?

CVE-2026-14620 exposes the /webpack-dev-server/open-editor and /webpack-dev-server/invalidate endpoints without proper request verification.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203