CVE-2025-30359

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-30359
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-30359.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-30359
Aliases
Published
2025-06-03T18:15:25Z
Modified
2025-06-04T16:54:44.667989Z
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/webpack/webpack-dev-server

Affected ranges

Type
GIT
Repo
https://github.com/webpack/webpack-dev-server
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v1.*

v1.10.0
v1.10.1
v1.11.0
v1.12.0
v1.12.1
v1.13.0
v1.14.0
v1.14.1
v1.7.0
v1.8.0
v1.8.1
v1.8.2
v1.9.0

v2.*

v2.0.0-beta
v2.1.0-beta.0
v2.1.0-beta.1
v2.1.0-beta.10
v2.1.0-beta.11
v2.1.0-beta.12
v2.1.0-beta.2
v2.1.0-beta.3
v2.1.0-beta.4
v2.1.0-beta.5
v2.1.0-beta.6
v2.1.0-beta.7
v2.1.0-beta.8
v2.1.0-beta.9
v2.10.0
v2.10.1
v2.11.0
v2.11.1
v2.2.0
v2.2.0-rc.0
v2.2.1
v2.3.0
v2.4.0
v2.4.1
v2.4.2
v2.4.3
v2.4.4
v2.4.5
v2.5.0
v2.6.0
v2.6.1
v2.8.0
v2.8.1
v2.8.2
v2.9.0
v2.9.1
v2.9.2
v2.9.3
v2.9.5
v2.9.6
v2.9.7

v3.*

v3.0.0
v3.0.0-beta.1
v3.0.0-beta.2
v3.0.1-beta.0
v3.1.0
v3.1.1
v3.1.10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