CriticalGHSA-hc6q-2mpp-qw7jCVE-2023-28154

Cross-realm object access in Webpack 5

Published 13 Mar 2023 · Updated 8 Nov 2023

Is your project on an affected webpack?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several JavaScript apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
>=5.0.0 <5.76.0
Fixed in
5.76.0
Update to the fixed version for your release line, for example:npm install webpack@5.76.0

Details

Webpack 5 before 5.76.0 does not avoid cross-realm object access. ImportParserPlugin.js mishandles the magic comment feature. An attacker who controls a property of an untrusted object can obtain access to the real global object.

Is GHSA-hc6q-2mpp-qw7j in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected webpack, and gives you the command that fixes it.

More advisories for webpack

  • LowCVE-2025-68458webpack buildHttp: allowedUris allow-list bypass via URL userinfo (@) leading to build-time SSRF behavior · 5 Feb 2026
  • LowCVE-2025-68157webpack buildHttp HttpUriPlugin allowedUris bypass via HTTP redirects → SSRF + cache persistence · 5 Feb 2026
  • MediumCVE-2024-43788Webpack's AutoPublicPathRuntimeModule has a DOM Clobbering Gadget that leads to XSS · 27 Aug 2024
webpack security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.