CVE-2025-30359: webpack webpack-dev-server Exposed Dangerous Method or Function
Vulnerability summary
CVE-2025-30359 is a medium (CVSS 5.9) Exposed Dangerous Method or Function vulnerability in webpack webpack-dev-server. EPSS estimates a 0.57% chance of exploitation in the next 30 days, higher than 46.5% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 03-06-2025PublishedVulnerability first disclosed.
- 03-06-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- CVE.orgCNA5.3MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:NDiffers
- OSV · WolfiEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:NDiffers
- OSV · NpmEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:NDiffers
- OSV · ChainguardEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:NDiffers
EPSS trend
Probability
0.57%
Chance of exploitation in the next 30 days
Percentile
47%
Versus all other CVEs
30-day change
0.00 pp
From 0.57% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundWebpack Dev Server
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Chainguard38 products
- arangodb-3.11< 3.11.14.5-r25
- arangodb-3.12< 3.12.11-r0
- argo-workflows< 3.6.10-r2
- argo-workflows-ui-3.7< 3.7.13-r2
- gitlab-rails-ce-18.1All versions (No fix recorded)
Wolfi12 products
- argo-workflows< 3.6.10-r2
- argo-workflows-ui-3.7< 3.7.13-r2
- katib-earlystopping< 0.19.0-r31
- katib-suggestion-goptuna-compatAll versions (No fix recorded)
- katib-suggestion-hyperband< 0.19.0-r31
Npm1 product
- webpack-dev-server< 5.2.1
Webpack1 product
- webpack-dev-server< 5.2.1
Webpack.js1 product
- webpack-dev-server< 5.2.1
5 vendors · 53 products
References
6 links- github.com/webpack/webpack-dev-server/security/advisories/GHSA-4v9v-hfq4-rm2vX Refsource CONFIRMAdvisoryWEBExploitVendor Advisory
- github.com/webpack/webpack-dev-server/commit/d2575ad8dfed9207ed810b5ea0ccf465115a2239X Refsource MISCFIXWEBPatch