Description
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.
Recommendation
Update the webpack package to the latest compatible version. Followings are version details:
- Affected version(s): >= 5.0.0, < 5.76.0
- Patched version(s): 5.76.0
References
Could your website be exposed too?
SmartScanner can check your website for Cross-realm object access in Webpack 5 and gives you actionable findings to investigate.
Start a free scanRelated Issues
- external-svg-loader Cross-site Scripting vulnerability - CVE-2023-40013
- Cross-site Scripting in evershop - @evershop/evershop - GHSA-2xcj-557c-hf8r - CVE-2023-46495
- Scrypted Cross-site Scripting vulnerability - CVE-2023-47623
- Strapi does not verify the access or ID tokens issued during the OAuth flow - CVE-2023-22893


