CVE-2024-43788DOM Clobbering Gadget found in Webpack's AutoPublicPathRuntimeModule that leads to…
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.
What to do
Fixed builds are available from Debian, npm: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | node-webpack | Fix pending | UBUNTU-CVE-2024-43788 | |
| Ubuntu 26.04 | node-webpack | Under investigation | UBUNTU-CVE-2024-43788 | |
| Ubuntu 25.10 | node-webpack | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2024-43788 | |
| Ubuntu 24.04 | node-webpack | Under investigation | UBUNTU-CVE-2024-43788 | |
| Ubuntu 22.04 | node-webpack | Under investigation | UBUNTU-CVE-2024-43788 | |
| Ubuntu 20.04 | node-webpack | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2024-43788 | |
| Ubuntu 18.04 | node-webpack | Fix pending | UBUNTU-CVE-2024-43788 | |
| Debian 14 | node-webpack | Fixed | 5.94.0+dfsg1+~cs11.18.26-2 | DEBIAN-CVE-2024-43788 |
| Debian 13 | node-webpack | Fixed | 5.94.0+dfsg1+~cs11.18.26-2 | DEBIAN-CVE-2024-43788 |
| Debian 12 | node-webpack | Fix pending | DEBIAN-CVE-2024-43788 | |
| Red Hat Enterprise Linux 10 | cockpit-ha-cluster | Not affected | ||
| Red Hat Enterprise Linux 10 | grafana | Not affected | ||
| Red Hat Enterprise Linux 10 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 10 | js-d3-flame-graph | Not affected | ||
| Red Hat Enterprise Linux 10 | pcs | Not affected | ||
| Red Hat Enterprise Linux 10 | pcs-snmp | Not affected | ||
| Red Hat Enterprise Linux 9 | gjs | Not affected | ||
| Red Hat Enterprise Linux 9 | gjs-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | grafana | Not affected | ||
| Red Hat Enterprise Linux 9 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 9 | js-d3-flame-graph | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | pcs | Not affected | ||
| Red Hat Enterprise Linux 9 | pcs-snmp | Not affected | ||
| Red Hat Enterprise Linux 9 | polkit | Not affected | ||
| Red Hat Enterprise Linux 9 | polkit-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | polkit-docs | Not affected | ||
| Red Hat Enterprise Linux 9 | polkit-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | js-d3-flame-graph | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | mozjs60 | Not affected | ||
| Red Hat Enterprise Linux 8 | mozjs60-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | thunderbird | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | firefox | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | thunderbird | Will not fix Will not fix | ||
| npm library | webpack | Fixed | 5.94.0 | GHSA-4vvj-4cpr-p986 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- webpack: affected: >= 5.0.0-alpha.0, < 5.94.0
References
- https://github.com/webpack/webpack/security/advisories/GHSA-4vvj-4cpr-p986
- https://github.com/webpack/webpack/issues/18718#issuecomment-2326296270
- https://github.com/webpack/webpack/commit/955e057abc6cc83cbc3fa1e1ef67a49758bf5a61
- https://research.securitum.com/xss-in-amp4email-dom-clobbering
- https://scnps.co/papers/sp23_domclob.pdf
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.