npm package

webpack 5.4.0 vulnerabilities, and the version that fixes all of them

webpack 5.4.0 has 2 known vulnerabilities (1 rated high or critical); 5.94.0 fixes all of them. 5.94.0 has 2 known vulnerabilities of its own, so upgrade to 5.112.0, which has none.

npm (opens in a new tab) describes it as “Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es…”

Known vulnerabilities
2
1 rated high or critical
Released
Nov 3, 2020
Latest is 5.112.0
Downloads last week
2.6K
Under 1% of webpack downloads
Licence
MIT
Pulls in
92 packages
Resolved by deps.dev

What to upgrade to

5.112.0 is the closest release with no known vulnerabilities that we checked.

  • 5.94.0

    Fixes all 2 known vulnerabilities. Released Aug 22, 2024.

    2 known vulnerabilities, worst rated warning
  • 5.112.0Upgrade to this

    Newest 5.x release and the latest release. Released Oct 15, 2026.

    No known vulnerabilities

5.112.0 came out on Oct 15, 2026. A coding agent trained before then doesn’t know it exists, so it may suggest an older release. AI knowledge cutoff dates

Hand the fix to your coding agent

One task with the upgrade, the file to change and why. Paste it into Claude Code, Cursor or Codex.

Findings

Every advisory for webpack 5.4.0

Known exploited first (CISA KEV), then by how likely they are to be exploited (FIRST EPSS), then by severity. Each id links to its OSV.dev record.

  1. CriticalCVE-2023-28154 on OSV.dev (opens in a new tab)GHSA-hc6q-2mpp-qw7jEPSS: top 28%

    Cross-realm object access in Webpack 5

    Fixed in 5.76.0. Published Mar 13, 2023.

  2. WarningCVE-2024-43788 on OSV.dev (opens in a new tab)GHSA-4vvj-4cpr-p986EPSS: top 40%

    Webpack's AutoPublicPathRuntimeModule has a DOM Clobbering Gadget that leads to XSS

    Fixed in 5.94.0. Published Aug 27, 2024.

Who is still on a vulnerable webpack

25% of last week’s 56.2M webpack downloads went to versions with known vulnerabilities.

From npm’s per-version download counts for the last 7 days, each version checked against OSV.dev. The versions checked cover over 99% of downloads.

Is webpack the only one?

Paste a public GitHub repo or drop your package.json and see every vulnerable, end-of-life or deprecated dependency, with one fix task. Free, no sign-up.

Check your whole repo

How this page is checked

StackPrism asks OSV.dev which advisories affect exactly webpack 5.4.0, merges duplicates filed under several ids, and ranks them with CISA’s Known Exploited Vulnerabilities list and FIRST EPSS. Release dates and deprecation come from deps.dev and npm. No AI writes this page: every sentence comes from that data, refreshed every few hours.

Last checked against npm, OSV.dev, deps.dev, CISA KEV and FIRST EPSS.