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?
Look after several JavaScript apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
webpacknpm
- 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.0Details
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
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2023-28154
- Linkgithub.com/webpack/webpack/pull/16500
- Linkgithub.com/webpack/webpack/compare/v5.75.0...v5.76.0
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AU7BOXTBK3KDYSWH67ASZ22TUIOZ3X5G
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PPSAXUTXBCCTAHTCX5BUR4YVP25XALQ3
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U2AFCM6FFE3LRYI6KNEQWKMXMQOBZQ2D
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.