Is webpack-dev-server 2.7 vulnerable?

npm · 1 release from 2.7.1 to 2.7.1 · latest webpack-dev-server is 6.1.0 · checked 2 Nov 2026

Yes: 7 known advisories

Yes. webpack-dev-server 2.7.1, the last 2.7 release, is affected by 7 known security advisories (1 high, 6 medium), including CVE-2018-14732, CVE-2026-14631, CVE-2026-14620. Upgrade to 5.2.6 or later to fix all of them.

Upgrade with:npm install webpack-dev-server@5.2.6

Is your project affected?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Advisories affecting webpack-dev-server 2.7.1

  • MediumCVE-2026-14631GHSA-m28w-2pqf-7qgj20 Jul 2026

    webpack-dev-server vulnerable to denial of service via a malformed Host or Origin header

    Affected
    <5.2.6
    Fixed in
    5.2.6
  • MediumCVE-2026-14620GHSA-f5vj-f2hx-8m9320 Jul 2026

    webpack-dev-server vulnerable to cross-site request forgery via internal developer endpoints

    Affected
    <5.2.6
    Fixed in
    5.2.6
  • MediumCVE-2026-9595GHSA-mx8g-39q3-5c7917 Jun 2026

    webpack-dev-server vulnerable to HMR WebSocket interception via permissive user proxies

    Affected
    <5.2.5
    Fixed in
    5.2.5
  • MediumCVE-2026-6402GHSA-79cf-xcqc-c78w18 May 2026

    webpack-dev-server vulnerable to cross-origin source code exposure on non-HTTPS origins

    Affected
    <5.2.4
    Fixed in
    5.2.4
  • MediumCVE-2025-30360GHSA-9jgg-88mc-972h4 Jun 2025

    webpack-dev-server users' source code may be stolen when they access a malicious web site with non-Chromium based browser

    Affected
    <5.2.1
    Fixed in
    5.2.1
  • MediumCVE-2025-30359GHSA-4v9v-hfq4-rm2v4 Jun 2025

    webpack-dev-server users' source code may be stolen when they access a malicious web site

    Affected
    <5.2.1
    Fixed in
    5.2.1
  • HighCVE-2018-14732GHSA-cf66-xwfp-gvc44 Jan 2019

    Missing Origin Validation in webpack-dev-server

    Affected
    <3.1.11
    Fixed in
    3.1.11

Which of your client projects are still on webpack-dev-server 2.7?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact webpack-dev-server version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other webpack-dev-server versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the npm registry. Refreshed daily.