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.
Remediation
References
https://github.com/webpack/webpack/compare/v5.75.0...v5.76.0
https://github.com/webpack/webpack/pull/16500
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AU7BOXTBK3KDYSWH67ASZ22TUIOZ3X5G/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PPSAXUTXBCCTAHTCX5BUR4YVP25XALQ3/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U2AFCM6FFE3LRYI6KNEQWKMXMQOBZQ2D/
Related Vulnerabilities
CVE-2018-20801 Vulnerability in npm package highcharts
CVE-2016-4432 Vulnerability in maven package org.apache.qpid:qpid-broker-plugins-amqp-0-10-protocol
CVE-2020-28052 Vulnerability in maven package bouncycastle:bcprov-jdk14
CVE-2014-7810 Vulnerability in maven package org.mortbay.jasper:apache-el
CVE-2022-34298 Vulnerability in maven package org.openidentityplatform.openam:openam-auth-nt