GHSA-hc6q-2mpp-qw7j

Cross-realm object access in Webpack 5

At a glance

Published
Updated
CVE
CVE-2023-28154
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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.

Affected packages

PackageVersions
npm · webpackintroduced 5.0.0, fixed 5.76.0

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database