Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. webpack
  4. ›
  5. CVE-2023-28154

CVE-2023-28154: Cross-realm object access in Webpack 5

March 13, 2023 (updated November 7, 2023)

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.

References

  • github.com/advisories/GHSA-hc6q-2mpp-qw7j
  • github.com/webpack/webpack/compare/v5.75.0...v5.76.0
  • github.com/webpack/webpack/pull/16500
  • nvd.nist.gov/vuln/detail/CVE-2023-28154

Code Behaviors & Features

Detect and mitigate CVE-2023-28154 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.0.0 before 5.76.0

Fixed versions

  • 5.76.0

Solution

Upgrade to version 5.76.0 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Source file

npm/webpack/CVE-2023-28154.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:15 +0000.