Skip to content
RedCVE

CVE-2026-112085Webpack JS Webpack-dev-server origin validation error

webpack.jswebpack-dev-serverPublished:

CVSS score

8.2

High

CVSS 3.1 from ce714d77-add3-4f53-aff5-83d477b104bb

Exploit probability (EPSS)

0.15%

0.15% chance of exploitation in the next 30 days, higher than 3.91% of all CVEs.

CISA KEV

Not in KEV

No confirmed exploitation reported by CISA so far.

Official description

webpack-dev-server is a development server that provides live reloading for webpack projects. In versions before 5.2.7 and in version 6.0.0, when a proxy entry is configured to forward WebSockets, the server forwards non-HMR WebSocket upgrade requests to the proxy target without validating the Host or Origin headers, so the allowedHosts protection does not apply to those proxied upgrades. A malicious web page visited by a developer can open a cross-origin WebSocket through the dev server and read from and write to the proxied backend, even when the server is bound to loopback. The issue is fixed in webpack-dev-server 5.2.7 and 6.1.0, where proxied WebSocket upgrades pass the same Host and Origin validation as the HMR WebSocket, and users should upgrade to one of those versions or later. As a workaround, omit WebSocket forwarding from proxy entries that do not need it and scope the proxy to specific paths.

Source: NVD · CNA: ce714d77-add3-4f53-aff5-83d477b104bb

How to fix it, step by step

  1. Check whether you're affected

    Find every system running webpack.js Webpack-dev-server and compare its version with the affected versions.

  2. Update to a fixed version

    • Update Webpack-dev-server to 5.2.7, 6.1.0 or later, on the branch you run.
  3. If you can't update right away

    Apply the workaround or mitigation in the vendor's advisory until you can update:

  4. Confirm the fix

    Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.

Was this useful?

How it can be exploited

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
Low
Availability
None

Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N

Affected products

Affected productsVersions
webpack.js Webpack-dev-server< 5.2.7 · ≥ 6.0.0, < 6.1.0
webpack-dev-server Webpack-dev-server< 5.2.7 · ≥ 6.0.0, < 6.1.0

Weakness

Timeline

  1. Published:
  2. Last modified:

Frequently asked questions

Is CVE-2026-112085 being exploited?

There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.1% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2026-112085?

CVE-2026-112085 has a CVSS 3.1 base score of 8.2 (high).

Which versions are affected?

Webpack JS Webpack-dev-server (< 5.2.7; ≥ 6.0.0, < 6.1.0), Webpack Dev Server Webpack-dev-server (< 5.2.7; ≥ 6.0.0, < 6.1.0)

Is there a patch for CVE-2026-112085?

The official record links to vendor advisories or patches; see “What to do” above.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.