First published: Mon Mar 13 2023(Updated: )
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.
Credit: cve@mitre.org cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/webpack | <5.76.0 | 5.76.0 |
Webpack.js Webpack | >=5.0.0<5.76.0 | |
npm/webpack | >=5.0.0<5.76.0 | 5.76.0 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The vulnerability ID for this issue is CVE-2023-28154.
CVE-2023-28154 has a severity rating of 9.8 (Critical).
The affected software is Webpack 5 before version 5.76.0.
CVE-2023-28154 occurs due to Webpack 5 before 5.76.0 not avoiding cross-realm object access and mishandling the magic comment feature, allowing an attacker to obtain access to the real global object.
To fix CVE-2023-28154, you should update Webpack to version 5.76.0 or later.