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.
{ "binaries": [ { "binary_name": "webpack", "binary_version": "3.5.6-2" } ] }
{ "binaries": [ { "binary_name": "webpack", "binary_version": "4.30.0-9" } ] }
{ "binaries": [ { "binary_name": "webpack", "binary_version": "4.43.0-7" } ] }
{ "binaries": [ { "binary_name": "webpack", "binary_version": "5.76.1+dfsg1+~cs17.16.16-1" } ] }
{ "binaries": [ { "binary_name": "webpack", "binary_version": "5.97.1+dfsg1+~cs11.18.27-2" } ] }