Skip to content

CVE-2024-43788 DOM Clobbering Gadget found in Webpack's AutoPublicPathRuntimeModule that leads to Cross-site Scripting (XSS)

MediumCVSS 6.1 EPSS 0.96%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
UbuntuDebian

Description

Webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable of transforming, bundling, or packaging just about any resource or asset. The webpack developers have discovered a DOM Clobbering vulnerability in Webpack’s AutoPublicPathRuntimeModule. The DOM Clobbering gadget in the module can lead to cross-site scripting (XSS) in web pages where scriptless attacker-controlled HTML elements (e.g., an img tag with an unsanitized name attribute) are present. Real-world exploitation of this gadget has been observed in the Canvas LMS which allows a XSS attack to happen through a javascript code compiled by Webpack (the vulnerable part is from Webpack). DOM Clobbering is a type of code-reuse attack where the attacker first embeds a piece of non-script, seemingly benign HTML markups in the webpage (e.g. through a post or comment) and leverages the gadgets (pieces of js code) living in the existing javascript code to transform it into executable code. This vulnerability can lead to cross-site scripting (XSS) on websites that include Webpack-generated files and allow users to inject certain scriptless HTML tags with improperly sanitized name or id attributes. This issue has been addressed in release version 5.94.0. All users are advised to upgrade. There are no known workarounds for this issue.

Upgrade path

10 packages: 5 fixed, 5 with no fix yet.

PackageAffectedFixed inStatus
debian/node-webpack(Debian 12) = 5.75.0+dfsg+~cs17.16.14-1; = 5.75.0+dfsg+~cs17.16.14-1+deb12u1; = 5.76.1+dfsg1+~cs17.16.16-1; = 5.76.1+dfsg2+~cs10.8.15-2 +22 more No fix listed No fix yet
ubuntu/node-webpack(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/node-webpack(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/node-webpack(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/node-webpack(Ubuntu 26.10) All versions No fix listed No fix yet
debian/node-webpack(Debian 13) < 5.94.0+dfsg1+~cs11.18.26-2 5.94.0+dfsg1+~cs11.18.26-2 Fixed
debian/node-webpack(Debian 14) < 5.94.0+dfsg1+~cs11.18.26-2 5.94.0+dfsg1+~cs11.18.26-2 Fixed
npm webpack(npm) >= 5.0.0-alpha.0, < 5.94.0 5.94.0 Fixed
webpack < 5.94.0; = >= 5.0.0-alpha.0, < 5.94.0 5.94.0 Fixed
webpack.js webpack < 5.94.0 5.94.0 Fixed

Affected products

ProductAffected versionsFixed in
npm webpack(npm) >= 5.0.0-alpha.0, < 5.94.0 5.94.0
debian/node-webpack(Debian:12) All versions No fix listed
debian/node-webpack(Debian:12) = 5.105.4+dfsg1+~cs15.13.23-1 No fix listed
debian/node-webpack(Debian:12) = 5.105.4+dfsg1+~cs15.13.23-2 No fix listed
debian/node-webpack(Debian:12) = 5.105.4+dfsg1+~cs15.13.23-3 No fix listed
debian/node-webpack(Debian:12) = 5.106.2+dfsg1+~cs15.15.23-1 No fix listed
debian/node-webpack(Debian:12) = 5.106.2+dfsg1+~cs15.15.23-2 No fix listed
debian/node-webpack(Debian:12) = 5.106.2+dfsg1+~cs15.15.23-3 No fix listed
debian/node-webpack(Debian:12) = 5.107.2+dfsg1+~cs15.16.25-1 No fix listed
debian/node-webpack(Debian:12) = 5.107.2+dfsg1+~cs15.16.25-1.1 No fix listed
debian/node-webpack(Debian:12) = 5.107.2+dfsg1+~cs15.16.25-2 No fix listed
debian/node-webpack(Debian:12) = 5.108.0+dfsg1+~cs14.7.20-1 No fix listed
debian/node-webpack(Debian:12) = 5.108.0+dfsg1+~cs14.7.20-2 No fix listed
debian/node-webpack(Debian:12) = 5.108.0+dfsg1+~cs14.7.20-3 No fix listed
debian/node-webpack(Debian:12) = 5.75.0+dfsg+~cs17.16.14-1 No fix listed
debian/node-webpack(Debian:12) = 5.75.0+dfsg+~cs17.16.14-1+deb12u1 No fix listed
debian/node-webpack(Debian:12) = 5.76.1+dfsg1+~cs17.16.16-1 No fix listed
debian/node-webpack(Debian:12) = 5.76.1+dfsg2+~cs10.8.15-2 No fix listed
debian/node-webpack(Debian:12) = 5.76.1+dfsg2+~cs10.8.15-3 No fix listed
debian/node-webpack(Debian:12) = 5.94.0+dfsg1+~cs11.18.26-1 No fix listed
debian/node-webpack(Debian:12) = 5.94.0+dfsg1+~cs11.18.26-2 No fix listed
debian/node-webpack(Debian:12) = 5.95.0+dfsg1+~cs11.18.26-1 No fix listed
debian/node-webpack(Debian:12) = 5.96.1+dfsg1+~cs11.18.26-1 No fix listed
debian/node-webpack(Debian:12) = 5.97.1+dfsg1+~cs11.18.27-1 No fix listed
debian/node-webpack(Debian:12) = 5.97.1+dfsg1+~cs11.18.27-2 No fix listed
Show 11 more
ProductAffected versionsFixed in
debian/node-webpack(Debian:12) = 5.97.1+dfsg1+~cs11.18.27-3 No fix listed
debian/node-webpack(Debian:12) = 5.97.1+dfsg1+~cs11.18.27-4 No fix listed
debian/node-webpack(Debian:13) < 5.94.0+dfsg1+~cs11.18.26-2 5.94.0+dfsg1+~cs11.18.26-2
debian/node-webpack(Debian:14) < 5.94.0+dfsg1+~cs11.18.26-2 5.94.0+dfsg1+~cs11.18.26-2
ubuntu/node-webpack(Ubuntu:22.04) All versions No fix listed
webpack = >= 5.0.0-alpha.0, < 5.94.0 No fix listed
webpack < 5.94.0 5.94.0
ubuntu/node-webpack(Ubuntu:24.04) All versions No fix listed
webpack.js webpack < 5.94.0 5.94.0
ubuntu/node-webpack(Ubuntu:26.04) All versions No fix listed
ubuntu/node-webpack(Ubuntu:26.10) All versions No fix listed

References