REDHAT-BUG-2488934: High severity webpack webpack-dev-server vulnerability

Published Jun 15, 2026
·
Updated

Impact: When a user-configured proxy on webpack-dev-server has a broad context (e.g. /) and ws: true, it also intercepts the dev server's own HMR WebSocket and forwards it to the proxy target. This leaks the browser's cookies and Origin header to the backend, bypasses the dev server's Host/Origin validation, and corrupts the HMR socket (both HMR and the proxy end up writing to the same socket).

Patches: Fixed in webpack-dev-server.5.

Workarounds: Scope user-defined proxy context to specific paths instead of /, or omit ws: true from the proxy entry when WebSocket forwarding is not required.

Affected Software

1 affected component
webpack webpack-dev-server<5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 5.
  2. Configuration

    Scope the user-defined proxy context to specific paths rather than using a broad context like '/'

    webpack-dev-server (proxy configuration) proxy context (where the proxy applies) = specific paths instead of /
  3. Configuration

    Remove 'ws: true' from the proxy entry if WebSocket forwarding is not required (so dev server does not forward HMR/proxy WebSockets to the target).

    webpack-dev-server (proxy configuration) ws = omit ws: true when WebSocket forwarding is not required

Event History

Jun 15, 2026
Data Sourced
via Red Hat·04:01 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2488934?

The severity of REDHAT-BUG-2488934 is rated high, specifically a score of 7.

2

What impact does REDHAT-BUG-2488934 have?

REDHAT-BUG-2488934 allows the interception of the dev server's HMR WebSocket, which can leak browser cookies and the Origin header to the backend.

3

How do I fix REDHAT-BUG-2488934?

To fix REDHAT-BUG-2488934, ensure that your proxy configuration on webpack-dev-server does not use a broad context and review the settings related to ws.

4

Who is affected by REDHAT-BUG-2488934?

Users of webpack-dev-server with a user-configured proxy that has a broad context and ws: true are affected by REDHAT-BUG-2488934.

5

When was REDHAT-BUG-2488934 published?

REDHAT-BUG-2488934 was published on June 15, 2026.

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