CVE-2025-30360: webpack-dev-server · Origin Validation Error
Affects webpack-dev-serverSource CVE Database V5
Mentioned vulnerabilities
Not known to be exploited · CVSS 6.5 Medium : upgrade to 5.2.1 when convenient.
Data as of 26 Oct 2026, 11:42 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 27% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.2.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 3 Jun 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade webpack-dev-server to 5.2.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
npmwebpack-dev-serverpkg:npm/webpack-dev-serverOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should immediately upgrade all instances of webpack-dev-server to version 5.2.1 or later to apply the official patch that correctly validates Origin headers, including those with IP addresses. Development teams should audit their environments to identify any use of vulnerable versions and enforce upgrade policies. Additionally, developers should be advised to avoid visiting untrusted or malicious websites while running development servers locally. Network segmentation can be employed to isolate development environments from general internet access where feasible. Implementing browser security policies or extensions that restrict WebSocket connections from untrusted origins can provide an additional layer of defense. Monitoring WebSocket traffic for unusual connections may help detect exploitation attempts. Finally, organizations should educate developers about the risks of cross-site WebSocket hijacking and encourage the use of Chromium-based browsers when possible, as the vulnerability specifically affects non-Chromium browsers.
Description
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.
References
- github.com/webpack/webpack-dev-server/security/advisories/GHSA-9jgg-88mc-972h (opens in a new tab)
- github.com/webpack/webpack-dev-server/commit/5c9378bb01276357d7af208a0856ca2163db188e (opens in a new tab)
- github.com/webpack/webpack-dev-server/commit/72efaab83381a0e1c4914adf401cbd210b7de7eb (opens in a new tab)
- github.com/webpack/webpack-dev-server/blob/55220a800ba4e30dbde2d98785ecf4c80b32f711/lib/Server.js (opens in a new tab)