The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2023-28154

CVE-2023-28154: Webpack.js Webpack XSS Vulnerability

CVE-2023-28154 is a cross-site scripting flaw in Webpack 5 before version 5.76.0 that enables cross-realm object access through magic comment mishandling. This article covers technical details, affected versions, and fixes.

Published: February 11, 2026

CVE-2023-28154 Overview

CVE-2023-28154 is a cross-realm object access vulnerability affecting Webpack 5 before version 5.76.0. The vulnerability exists in ImportParserPlugin.js, which mishandles the magic comment feature used during module imports. An attacker who controls a property of an untrusted object can exploit this flaw to obtain access to the real global object, potentially leading to severe security implications including arbitrary code execution within the application context.

This vulnerability represents a significant security risk for Node.js applications and build pipelines that rely on Webpack for bundling, as it could allow attackers to break out of sandboxed environments and access privileged JavaScript objects.

Critical Impact

Attackers can bypass realm boundaries to access the real global object, potentially enabling arbitrary code execution, data theft, and complete compromise of applications built with vulnerable Webpack versions.

Affected Products

  • Webpack.js Webpack versions prior to 5.76.0
  • Node.js applications using affected Webpack versions
  • Build pipelines and development environments utilizing Webpack 5.x < 5.76.0

Discovery Timeline

  • 2023-03-13 - CVE-2023-28154 published to NVD
  • 2025-02-27 - Last updated in NVD database

Technical Details for CVE-2023-28154

Vulnerability Analysis

The vulnerability resides in Webpack's handling of magic comments within the ImportParserPlugin.js module. Magic comments are special syntax annotations that developers use to provide hints to Webpack about how to handle dynamic imports, such as specifying chunk names or loading priorities.

The core issue is that Webpack 5 does not properly avoid cross-realm object access when processing these magic comments. In JavaScript, a "realm" consists of a set of built-in objects, an ECMAScript global environment, and all the code loaded within that environment. Proper realm isolation is critical for security, especially when processing untrusted input.

When an attacker controls a property of an untrusted object that gets processed by the vulnerable import parser, they can leverage this flaw to escape the intended realm boundaries and obtain a reference to the real global object. This breaks fundamental security assumptions and can lead to complete application compromise.

Root Cause

The root cause lies in insufficient validation and sanitization of object properties during magic comment processing in ImportParserPlugin.js. The parser fails to properly isolate realm boundaries when evaluating properties, allowing cross-realm access. Specifically, the code does not properly guard against prototype chain traversal or property accessor exploitation that could leak references to the global object from another realm.

Attack Vector

The attack is network-accessible and requires no authentication or user interaction. An attacker would need to:

  1. Identify an application using a vulnerable Webpack version (< 5.76.0)
  2. Find an input vector that allows them to control a property of an object processed by Webpack's import parser
  3. Craft malicious input that exploits the cross-realm access flaw
  4. Use the obtained global object reference to execute arbitrary code or access sensitive data

The vulnerability can be exploited in scenarios where Webpack processes dynamic imports with attacker-controlled magic comment content or object properties. This is particularly dangerous in server-side rendering applications or build-time code generation scenarios where untrusted input may influence the bundling process.

Technical details regarding the fix can be found in the GitHub Webpack Pull Request #16500.

Detection Methods for CVE-2023-28154

Indicators of Compromise

  • Unexpected global object access patterns in application logs
  • Anomalous behavior in dynamic import handling during build or runtime
  • Signs of prototype pollution or property injection attempts in module imports
  • Unusual error messages related to ImportParserPlugin.js or magic comment parsing

Detection Strategies

  • Audit package.json and package-lock.json files for Webpack versions below 5.76.0
  • Implement Software Composition Analysis (SCA) tools to continuously monitor for vulnerable dependencies
  • Use npm audit or yarn audit to identify known vulnerabilities in the dependency tree
  • Monitor build logs for suspicious import patterns or magic comment anomalies

Monitoring Recommendations

  • Enable verbose logging in build pipelines to capture potential exploitation attempts
  • Implement runtime monitoring for unexpected global object access patterns
  • Deploy application security monitoring to detect post-exploitation behaviors
  • Set up alerts for dependency version changes in CI/CD pipelines

How to Mitigate CVE-2023-28154

Immediate Actions Required

  • Upgrade Webpack to version 5.76.0 or later immediately
  • Review and audit all dynamic imports in your codebase for potential abuse vectors
  • Implement strict input validation for any user-controlled content that influences build processes
  • Conduct a security review of build pipelines and development environments

Patch Information

The vulnerability is fixed in Webpack version 5.76.0. The patch addresses the cross-realm object access issue in ImportParserPlugin.js by implementing proper realm boundary checks and object property validation.

To update Webpack, run:

bash
npm update webpack
# or
yarn upgrade webpack

Verify the installed version:

bash
npm list webpack

For detailed changes between the vulnerable and patched versions, see the GitHub Webpack v5.76.0 Update.

Workarounds

  • If immediate upgrade is not possible, restrict build-time processing of untrusted input
  • Implement Content Security Policy (CSP) to limit the impact of potential code execution
  • Run build processes in isolated environments with minimal privileges
  • Consider using integrity checks for all dependencies to prevent supply chain attacks
bash
# Verify and update Webpack to patched version
npm install webpack@^5.76.0 --save-dev

# Lock dependencies to prevent inadvertent downgrades
npm shrinkwrap

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechWebpack

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability1.45%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo
  • Technical References
  • Fedora Package Announcement

  • Fedora Package Announcement Update

  • Fedora Package Announcement Notification
  • Vendor Resources
  • GitHub Webpack v5.76.0 Update

  • GitHub Webpack Pull Request #16500
  • Related CVEs
  • CVE-2025-30360: Webpack-dev-server XSS Vulnerability

  • CVE-2025-30359: Webpack-dev-server XSS Vulnerability

  • CVE-2025-68458: Webpack SSRF Vulnerability

  • CVE-2025-68157: Webpack SSRF Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English