Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-30359— webpack-dev-server users' source code may be stolen when they access a malicious web site

Quick assessment

Affected
webpack webpack-dev-server
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

webpack-dev-server是webpack开源的一个提供webpack的应用程序。 webpack-dev-server 5.2.1之前版本存在安全漏洞,该漏洞源于用户访问恶意网站时可能被窃取源代码。

CVSS 5.3 · Medium EPSS 0.57% · P45
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-30359

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
webpack-dev-server users' source code may be stolen when they access a malicious web site
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
暴露危险的方法或函数
Source: CVE Program / CVE List V5
Vulnerability Title
webpack-dev-server 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
webpack-dev-server是webpack开源的一个提供webpack的应用程序。 webpack-dev-server 5.2.1之前版本存在安全漏洞,该漏洞源于用户访问恶意网站时可能被窃取源代码。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
webpack webpack-dev-server < 5.2.1 -

II. Public POCs for CVE-2025-30359

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-30359

请登录查看更多情报信息。

Vendor Advisories for CVE-2025-30359 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2025-30359

No comments yet


Leave a comment