CVE-2025-30359: webpack-dev-server · Exposed Dangerous Method or Function
Affects webpack-dev-serverSource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium : upgrade to 5.2.1 when convenient.
Data as of 26 Oct 2026, 09:08 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 47% 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:H/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 patch that fixes this vulnerability. Development teams should audit their environments to identify any usage of vulnerable versions, including local developer machines, CI/CD pipelines, and shared development servers. Network segmentation and firewall rules should be employed to restrict access to development servers, especially limiting exposure of development ports to untrusted networks or the internet. Developers should be educated about the risks of visiting untrusted websites while connected to development environments. Additionally, consider disabling or restricting live reloading features in sensitive environments if possible. Monitoring network traffic for unusual requests to development server ports can help detect exploitation attempts. Finally, review and sanitize any prototype pollution vectors in the application code to reduce the risk of combined exploitation.
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 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.