CRITICAL9.8
GHSA-hc6q-2mpp-qw7j
Cross-realm object access in Webpack 5
Quick fix
GHSA-hc6q-2mpp-qw7j — webpack: upgrade to the fixed version with the command below.
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-28154[ADVISORY]
- https://github.com/webpack/webpack/pull/16500[WEB]
- https://github.com/webpack/webpack/compare/v5.75.0...v5.76.0[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AU7BOXTBK3KDYSWH67ASZ22TUIOZ3X5G[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PPSAXUTXBCCTAHTCX5BUR4YVP25XALQ3[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U2AFCM6FFE3LRYI6KNEQWKMXMQOBZQ2D[WEB]