CVE-2023-28154Webpack.js Webpack
Critical 9.8 No auth needed
Follow: this CVE · Webpack.js · Webpack.js Webpack We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.6% probability of exploitation in 30 days · percentile 76
- Auth required
- No
- Published
- Mar 13, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Webpack.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | webpack |
≥ 5.0.0 < 5.76.0 |
5.76.0 |
npm install webpack@5.76.0 |
Per OSV / GitHub Advisories (GHSA-hc6q-2mpp-qw7j). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| webpack.js | webpack | ≥ 5.0.0 < 5.76.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Product
- github.com Patch
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org