ADVISORIES

GitHub Advisory Database

GHSA-hc6q-2mpp-qw7j

Cross-realm object access in Webpack 5

Critical CVE-2023-28154

Details

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

EcosystemPackageAffected versions
npmwebpack
From 5.0.0 before 5.76.0 (fixed in 5.76.0)

References