Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2023-28154

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-28154
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 05:51 UTC · Revision 1

Source evidence

CVE-2023-28154

core-osv · Original source

Published 13 Mar 2023, 00:00 UTC

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.

osv:CVE-2023-28154
Complete source record
{
  "id": "698b60130cffd32e8298177177fc8fe9461c47468265538abc7bb5197e17f6cb",
  "url": "https://osv.dev/vulnerability/CVE-2023-28154",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2023-28154",
    "summary": "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.",
    "evidence": "osv:CVE-2023-28154",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2023-28154",
      "aliases": [
        "CVE-2023-28154",
        "GHSA-hc6q-2mpp-qw7j"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/webpack/webpack",
              "type": "GIT",
              "events": [
                {
                  "introduced": "610f36817af1f1c6929786d68f734ac582af1757"
                },
                {
                  "fixed": "97b1718720c33f1b17302a74c5284b01e02ec001"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "5"
                      },
                      {
                        "fixed": "5.76.0"
                      }
                    ],
                    "source": "DESCRIPTION"
                  },
                  {
                    "cpe": "cpe:2.3:a:webpack.js:webpack:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "5.0.0"
                      },
                      {
                        "fixed": "5.76.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v5.61.0",
            "v5.75.0",
            "v5.74.0",
            "v5.73.0",
            "v5.72.1",
            "v5.72.0",
            "v5.71.0",
            "v5.70.0",
            "v5.69.1",
            "v5.69.0",
            "v5.68.0",
            "v5.67.0",
            "v5.66.0",
            "v5.65.0",
            "v5.64.4",
            "v5.64.3",
            "v5.64.2",
            "v5.64.1",
            "v5.64.0",
            "v5.63.0",
            "v5.62.2",
            "v5.62.0",
            "v5.62.1",
            "v5.60.0",
            "v5.59.1",
            "v5.59.0",
            "v5.58.2",
            "v5.58.1",
            "v5.58.0",
            "v5.57.1",
            "v5.57.0",
            "v5.56.1",
            "v5.56.0",
            "v5.55.1",
            "v5.55.0",
            "v5.54.0",
            "v5.39.1",
            "v5.53.0",
            "v5.52.1",
            "v5.52.0",
            "v5.51.2",
            "v5.51.1",
            "v5.51.0",
            "v5.50.0",
            "v5.49.0",
            "v5.48.0",
            "v5.47.1",
            "v5.47.0",
            "v5.46.0",
            "v5.45.1",
            "v5.45.0",
            "v5.44.0",
            "v5.43.0",
            "v5.42.0",
            "v5.41.0",
            "v5.41.1",
            "v5.40.0",
            "v5.39.0",
            "v5.38.1",
            "v5.38.0",
            "v5.37.1",
            "v5.37.0",
            "v5.36.2",
            "v5.36.1",
            "v5.36.0",
            "v5.35.1",
            "v5.35.0",
            "v5.34.0",
            "v5.33.2",
            "v5.33.1",
            "v5.33.0",
            "v5.32.0",
            "v5.31.2",
            "v5.31.1",
            "v5.31.0",
            "v5.30.0",
            "v5.29.0",
            "v5.28.0",
            "v5.27.2",
            "v5.27.1",
            "v5.26.0",
            "v5.27.0",
            "v5.26.3",
            "v5.26.2",
            "v5.26.1",
            "v5.25.1",
            "v5.25.0",
            "v5.24.4",
            "v5.24.3",
            "v5.24.2",
            "v5.24.1",
            "v5.24.0",
            "v5.23.0",
            "v5.22.0",
            "v5.21.2",
            "v5.21.0",
            "v5.20.2",
            "v5.20.1",
            "v5.20.0",
            "v5.19.0",
            "v5.18.0",
            "v5.17.0",
            "v5.16.0",
            "v5.15.0",
            "v5.14.0",
            "v5.13.0",
            "v5.12.3",
            "v5.12.2",
            "v5.12.1",
            "v5.12.0",
            "v5.11.1",
            "v5.11.0",
            "v5.10.3",
            "v5.10.2",
            "v5.10.1",
            "v5.10.0",
            "v5.9.0",
            "v5.8.0",
            "v5.7.0",
            "v5.6.0",
            "v5.5.1",
            "v5.5.0",
            "v5.4.0",
            "v5.3.2",
            "v5.3.1",
            "v5.3.0",
            "v5.2.1",
            "v5.2.0",
            "v5.1.3",
            "v5.1.2",
            "v5.1.1",
            "v5.1.0",
            "v5.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-28154.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:43.086576731Z",
      "provider": "osv",
      "references": [
        "https://github.com/webpack/webpack/compare/v5.75.0...v5.76.0",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/28xxx/CVE-2023-28154.json",
        "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/",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-28154",
        "https://github.com/webpack/webpack/pull/16500"
      ],
      "provider_metadata": {
        "cna_assigner": "mitre",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/28xxx/CVE-2023-28154.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-28154",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 510829,
  "published_at": "2023-03-13T00:00:00+00:00"
}