Skip to main content
VulnerabilityPublished

CVE-2025-30360: webpack-dev-server · Origin Validation Error

Affects webpack-dev-serverSource CVE Database V5

0

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

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Jun 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
npmwebpack-dev-serverpkg:npm/webpack-dev-serverOther threatsAffected
  • <5.2.1
Fixed in
  • 5.2.1

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

Community reviews

Loading reviews…