GHSA-m28w-2pqf-7qgj

Suggest an improvement
Source
https://github.com/advisories/GHSA-m28w-2pqf-7qgj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-m28w-2pqf-7qgj/GHSA-m28w-2pqf-7qgj.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-m28w-2pqf-7qgj
Aliases
Downstream
CGA (50)
MINI (6)
Published
2026-07-20T22:02:31Z
Modified
2026-09-10T03:50:52Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
webpack-dev-server vulnerable to denial of service via a malformed Host or Origin header
Details

Impact

An unauthenticated peer that can reach the webpack-dev-server process can terminate it by sending either a normal HTTP request with a malformed Host header, or a WebSocket upgrade to the default /ws endpoint with a malformed Origin header. The malformed header triggers an uncaught exception in the host-validation path and crashes the dev server process.

Patches

Fixed in webpack-dev-server 5.2.6 by treating malformed Host and Origin header values as invalid rather than throwing (see PR #5699).

Workarounds

Keep the dev server bound to localhost (the default) and do not expose it to untrusted networks.

Database specific
{
    "cwe_ids":  [
        "CWE-20",
        "CWE-248"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-07-20T22:02:31Z",
    "nvd_published_at":  "2026-07-03T18:16:24Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / webpack-dev-server

Package

Name
webpack-dev-server
View open source insights on deps.dev
Purl
pkg:npm/webpack-dev-server

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
5.2.6

Database specific

last_known_affected_version_range
"<= 5.2.5"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-m28w-2pqf-7qgj/GHSA-m28w-2pqf-7qgj.json"