5.9

CVE-2025-30359: webpack webpack-dev-server Exposed Dangerous Method or Function

CVSS: 5.9v3.1MediumAnalyzed
AliasesCGA-2775-93jr-vpw2CGA-2988-f3v2-gc2wCGA-4gpp-64hq-wg9x
Published 03-06-2025Last modified 03-06-2025

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.

Overall risk
34/100
0100
Medium · default modelHow is this calculated?
CVSS score
5.9/10
010
Medium · v3.1 (NVD)
EPSS score
0.57%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 03-06-2025
    PublishedVulnerability first disclosed.
  2. 03-06-2025
    Last 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

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

21-09-202621-10-2026
EPSS score
0.57%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Webpack Dev Server

    Maturity: poc

Weaknesses

CWE · root cause

Affected 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.js1 product

5 vendors · 53 products

References

6 links