PT-2025-23648

CVE-2025-30359

·

Published

2025-06-03

·

Updated

2026-09-18

Description by

CVSS 3.1
5.9
Medium
MetricsAV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions webpack-dev-server versions prior to 5.2.1
Description The issue allows an attacker to steal users' source code when they access a malicious website. This is possible because the request for a classic script by a script tag is not subject to the same origin policy, enabling an attacker to inject a malicious script and run it. The attacker must know the port and the output entrypoint script path. By combining this with prototype pollution, the attacker can get a reference to the webpack runtime variables. Using Function::toString against the values in webpack modules allows the attacker to obtain the source code.
Recommendations For versions prior to 5.2.1, update to version 5.2.1 or later to resolve the issue. As a temporary workaround, consider restricting access to the development server to minimize the risk of exploitation. Avoid using the webpack modules variable in sensitive contexts until the issue is resolved.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-4V9V-HFQ4-RM2V
CLEANSTART-2026-VG68470
Found an issue in the description? Have something to add? Feel free to write us 👾