CVE-2025-30359
CVE-2025-30359 is a medium-severity vulnerability in Webpack.js Webpack-dev-server with a CVSS 3.x base score of 5.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-749.
Key facts
- Severity: Medium (CVSS 3.x base score 5.3)
- EPSS exploit prediction: 0% (34th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2025-16767
- Weakness: CWE-749
- Affected product: Webpack.js Webpack-dev-server
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2025-30359?
- 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.
- How severe is CVE-2025-30359?
- CVE-2025-30359 has a CVSS 3.x base score of 5.3, rated medium severity. It is exploitable over network with high attack complexity, requires no privileges and user interaction. Impact on confidentiality is high, integrity none, and availability none.
- Is CVE-2025-30359 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (34th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2025-30359?
- CVE-2025-30359 affects Webpack.js Webpack-dev-server. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2025-30359?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- Does CVE-2025-30359 have an EU (EUVD) identifier?
- Yes. CVE-2025-30359 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-16767.
- When was CVE-2025-30359 published?
- CVE-2025-30359 was published on 2025-06-03 and last updated on 2026-06-17.
References
- https://github.com/webpack/webpack-dev-server/commit/d2575ad8dfed9207ed810b5ea0ccf465115a2239
- https://github.com/webpack/webpack-dev-server/security/advisories/GHSA-4v9v-hfq4-rm2v
Affected products (1)
- cpe:2.3:a:webpack.js:webpack-dev-server:*:*:*:*:*:*:*:*
More vulnerabilities in Webpack.js Webpack-dev-server
- CVE-2018-14732 — High (CVSS 7.5): An issue was discovered in lib/Server.js in webpack-dev-server before 3.1.6. Attackers are able to steal developer's…
- CVE-2025-30360 — Medium (CVSS 6.5): webpack-dev-server allows users to use webpack with a development server that provides live reloading. Prior to version…
- CVE-2026-14631 — Medium (CVSS 5.3): webpack-dev-server versions 5.2.5 and earlier terminate the whole Node.js process when an unauthenticated peer sends…
- CVE-2026-9595 — Medium (CVSS 5.3): Impact: When a user-configured proxy on webpack-dev-server has a broad context (e.g. /) and ws: true, it also…
- CVE-2026-6402 — Medium (CVSS 5.3): webpack-dev-server versions up to and including 5.2.3 are vulnerable to cross-origin source code exposure when serving…
- CVE-2026-14620 — Medium (CVSS 4.7): webpack-dev-server versions 5.2.5 and earlier expose two internal developer endpoints, /webpack-dev-server/open-editor…
All CVEs affecting Webpack.js Webpack-dev-server →
Other CWE-749 vulnerabilities
- CVE-2023-40151 — Critical (CVSS 10.0): When user authentication is not enabled the shell can execute commands with the highest privileges. Red Lion SixTRAK…
- CVE-2026-55454 — Critical (CVSS 9.9): Appsmith is a platform to build admin panels, internal tools, and dashboards. Prior to 2.1, the bundled Caddy…
- CVE-2026-30957 — Critical (CVSS 9.9): OneUptime is a solution for monitoring and managing online services. Prior to 10.0.21, OneUptime Synthetic Monitors…
- CVE-2026-30921 — Critical (CVSS 9.9): OneUptime is a solution for monitoring and managing online services. Prior to 10.0.20, OneUptime Synthetic Monitors…
- CVE-2019-18342 — Critical (CVSS 9.9): A vulnerability has been identified in Control Center Server (CCS) (All versions < V1.5.0). The SFTP service (default…
- CVE-2025-59403 — Critical (CVSS 9.8): The Flock Safety Android Collins application (aka com.flocksafety.android.collins) 6.35.31 for Android lacks…