Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2025-30359

5.3 · MEDIUM
Published Jun 3, 2025 webpack.js CWE-749 EPSS 0.57% (45th pctl)

Overview

CVE-2025-30359 is a medium-severity vulnerability affecting webpack.js webpack-dev-server. It was published on June 3, 2025 and has a CVSS 3.1 base score of 5.3 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.3, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical 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.

Remediation

Check the references section for vendor advisories and patches from webpack.js. Update webpack-dev-server to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
webpack.js webpack-dev-server >= 0, < 5.2.1 Affected

Frequently Asked Questions

What is CVE-2025-30359?

CVE-2025-30359 is a medium-severity vulnerability affecting webpack.js webpack-dev-server. It was published on June 3, 2025 and has a CVSS 3.1 base score of 5.3 (MEDIUM).

How severe is CVE-2025-30359?

This vulnerability has a CVSS 3.1 base score of 5.3, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2025-30359?

Check the references section for vendor advisories and patches from webpack.js. Update webpack-dev-server to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-30359?

CyberStrike's AI-powered security agents can automatically detect CVE-2025-30359 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.