Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:npm/webpack-dev-server@3.1.6
purl pkg:npm/webpack-dev-server@3.1.6
Next non-vulnerable version 5.2.1
Latest non-vulnerable version 5.2.4
Risk 3.1
Vulnerabilities affecting this package (2)
Vulnerability Summary Fixed by
VCID-8148-6w2d-7ude
Aliases:
CVE-2025-30360
GHSA-9jgg-88mc-972h
webpack-dev-server allows users to use webpack with a development server that provides live reloading. Prior to version 5.2.1, webpack-dev-server users' source code may be stolen when you access a malicious web site with non-Chromium based browser. The `Origin` header is checked to prevent Cross-site WebSocket hijacking from happening, which was reported by CVE-2018-14732. But webpack-dev-server always allows IP address `Origin` headers. This allows websites that are served on IP addresses to connect WebSocket. An attacker can obtain source code via a method similar to that used to exploit CVE-2018-14732. Version 5.2.1 contains a patch for the issue.
5.2.1
Affected by 0 other vulnerabilities.
VCID-d4p2-s8vr-q3df
Aliases:
CVE-2025-30359
GHSA-4v9v-hfq4-rm2v
webpack-dev-server allows users to use webpack with a development server that provides live reloading. Prior to version 5.2.1, webpack-dev-server users' source code may be stolen when they access a malicious web site. Because the request for classic script by a script tag is not subject to same origin policy, an attacker can inject a malicious script in their site and run the script. Note that the attacker has to know the port and the output entrypoint script path. Combined with prototype pollution, the attacker can get a reference to the webpack runtime variables. By using `Function::toString` against the values in `__webpack_modules__`, the attacker can get the source code. Version 5.2.1 contains a patch for the issue.
5.2.1
Affected by 0 other vulnerabilities.
Vulnerabilities fixed by this package (1)
Vulnerability Summary Aliases
VCID-sfed-asyk-93by Missing Origin Validation in webpack-dev-server CVE-2018-14732
GHSA-cf66-xwfp-gvc4

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-12T20:03:23.416819+00:00 GitLab Importer Affected by VCID-8148-6w2d-7ude https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/webpack-dev-server/CVE-2025-30360.yml 38.6.0
2026-06-12T20:03:21.649303+00:00 GitLab Importer Affected by VCID-d4p2-s8vr-q3df https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/webpack-dev-server/CVE-2025-30359.yml 38.6.0
2026-06-12T15:40:59.158951+00:00 GitLab Importer Fixing VCID-sfed-asyk-93by https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/webpack-dev-server/CVE-2018-14732.yml 38.6.0