Anonymous Intelligence Signal

Webpack 5.94.0 Patches Critical DOM Clobbering Flaw (CVE-2024-43788) Enabling XSS Attacks

human The Lab unverified 2026-04-15 09:22:40 Source: GitHub Issues

A critical security vulnerability in Webpack, the ubiquitous JavaScript module bundler, has been patched in version 5.94.0. The flaw, tracked as CVE-2024-43788, is a DOM Clobbering weakness within Webpack's `AutoPublicPathRuntimeModule`. This vulnerability creates a pathway for cross-site scripting (XSS) attacks, potentially allowing malicious actors to execute arbitrary code in a victim's browser context.

The core of the issue lies in a DOM Clobbering gadget present in the module. An attacker can exploit this by injecting scriptless HTML elements—such as an `<img>` tag with a specially crafted, unsanitized `name` attribute—into a vulnerable web page. When Webpack processes the page, this manipulated DOM structure can be leveraged to clobber (overwrite) JavaScript objects and properties, ultimately leading to the execution of malicious scripts. The update from version 5.87.0 to 5.94.0 specifically addresses this security advisory.

This patch is a mandatory update for any development team or organization relying on Webpack for building web applications. The widespread adoption of Webpack across millions of projects, from small-scale sites to enterprise applications, significantly amplifies the risk surface. Unpatched versions leave applications open to client-side attacks where user data can be stolen, sessions hijacked, or page content maliciously altered. The silent nature of DOM Clobbering, which doesn't require traditional script injection, makes it a particularly insidious threat vector that demands immediate remediation.