{"id":"CVE-2026-14631","aliases":["CVE-2026-14631","GHSA-m28w-2pqf-7qgj"],"related":[],"kind":"vulnerability","state":"published","title":"webpack-dev-server vulnerable to denial of service via a malformed Host or Origin header","summary":"webpack-dev-server versions 5.2.5 and earlier terminate the whole Node.js process when an unauthenticated peer sends 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 value causes an uncaught exception in the host-validation path and crashes the dev server. Impact is limited to availability of the development server, no data disclosure, no code execution. Patches: upgrade to webpack-dev-server 5.2.6. Workarounds: keep the dev server bound to localhost (the default) and do not expose it to untrusted networks.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"webpack-dev-server versions 5.2.5 and earlier terminate the whole Node.js process when an unauthenticated peer sends 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 value causes an uncaught exception in the host-validation path and crashes the dev server. Impact is limited to availability of the development server, no data disclosure, no code execution. Patches: upgrade to webpack-dev-server 5.2.6. Workarounds: keep the dev server bound to localhost (the default) and do not expose it to untrusted networks.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nAn 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.\n\n### Patches\n\nFixed in `webpack-dev-server` 5.2.6 by treating malformed `Host` and `Origin` header values as invalid rather than throwing (see [PR #5699](https://github.com/webpack/webpack-dev-server/pull/5699)).\n\n### Workarounds\n\nKeep the dev server bound to `localhost` (the default) and do not expose it to untrusted networks.","format":"markdown","source":"ghsa"}],"published":"2026-07-03T17:23:41.451Z","modified":"2026-09-10T03:50:52.455Z","severity":{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-20","CWE-248"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"5.2.6","status":"affected"},{"type":"semver","version":"5.2.6","status":"unaffected"}],"vendor":"webpack-dev-server","product":"webpack-dev-server","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.2.6"}],"ecosystem":"npm","package":"webpack-dev-server","purl":"pkg:npm/webpack-dev-server","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"5.2.6"}],"vendor":"webpack.js","product":"webpack-dev-server","cpe":"cpe:2.3:a:webpack.js:webpack-dev-server:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/webpack/webpack-dev-server/security/advisories/GHSA-m28w-2pqf-7qgj","tags":["mitigation","patch","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-14631","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/webpack/webpack-dev-server/pull/5699","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/webpack/webpack-dev-server/commit/f21ed0f44aceb6132abb591ee8b60d770b6e489f","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/webpack/webpack-dev-server","tags":["package"],"sources":["ghsa"]}],"credits":["Str1ckl4nd","bjohansebas","UlisesGascon"],"assigner":"openjs","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-07-06T15:54:04.567Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-14631","url":"https://www.cve.org/CVERecord?id=CVE-2026-14631","licence":"CVE Terms of Use","modified":"2026-07-06T15:54:11.285Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m28w-2pqf-7qgj","url":"https://github.com/advisories/GHSA-m28w-2pqf-7qgj","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:52.455Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-14631","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-14631","licence":"Public domain","modified":"2026-07-07T15:08:59.667Z"}],"updatedAt":"2026-11-25T22:59:27.100Z","epss":{"score":0.00405,"percentile":0.36891,"date":"2026-12-01T12:00:22.000Z"}}