NetSight
critical9.8

CVE-2023-28154

Cross-realm object access in Webpack 5

Impact

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.

Affected packages

EcosystemPackageAffectedFixed in
npmwebpack>= 5.0.0, < 5.76.05.76.0

Affected products

VendorProductAffected versions
Webpack.JsWebpack
from 5.0.0 before 5.76.0

References