CVEfocus › CVE database › CVE-2024-43788

CVE-2024-43788DOM Clobbering Gadget found in Webpack's AutoPublicPathRuntimeModule that leads to…

CVSS 6.4 MediumEPSS 1.2% (higher than 67% of CVEs)Published 2024-08-27Updated 2025-01-09Assigner: GitHub_M

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.

CWE-79

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

3Fixed
3Fix pending
3Under investigation
7Will not fix
18Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-webpackFix pendingUBUNTU-CVE-2024-43788
Ubuntu 26.04node-webpackUnder investigationUBUNTU-CVE-2024-43788
Ubuntu 25.10node-webpackWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-43788
Ubuntu 24.04node-webpackUnder investigationUBUNTU-CVE-2024-43788
Ubuntu 22.04node-webpackUnder investigationUBUNTU-CVE-2024-43788
Ubuntu 20.04node-webpackWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-43788
Ubuntu 18.04node-webpackFix pendingUBUNTU-CVE-2024-43788
Debian 14node-webpackFixed5.94.0+dfsg1+~cs11.18.26-2DEBIAN-CVE-2024-43788
Debian 13node-webpackFixed5.94.0+dfsg1+~cs11.18.26-2DEBIAN-CVE-2024-43788
Debian 12node-webpackFix pendingDEBIAN-CVE-2024-43788
Red Hat Enterprise Linux 10cockpit-ha-clusterNot affected
Red Hat Enterprise Linux 10grafanaNot affected
Red Hat Enterprise Linux 10grafana-selinuxNot affected
Red Hat Enterprise Linux 10js-d3-flame-graphNot affected
Red Hat Enterprise Linux 10pcsNot affected
Red Hat Enterprise Linux 10pcs-snmpNot affected
Red Hat Enterprise Linux 9gjsNot affected
Red Hat Enterprise Linux 9gjs-develNot affected
Red Hat Enterprise Linux 9grafanaNot affected
Red Hat Enterprise Linux 9grafana-selinuxNot affected
Red Hat Enterprise Linux 9js-d3-flame-graphWill not fix
Will not fix
Red Hat Enterprise Linux 9pcsNot affected
Red Hat Enterprise Linux 9pcs-snmpNot affected
Red Hat Enterprise Linux 9polkitNot affected
Red Hat Enterprise Linux 9polkit-develNot affected
Red Hat Enterprise Linux 9polkit-docsNot affected
Red Hat Enterprise Linux 9polkit-libsNot affected
Red Hat Enterprise Linux 8js-d3-flame-graphWill not fix
Will not fix
Red Hat Enterprise Linux 8mozjs60Not affected
Red Hat Enterprise Linux 8mozjs60-develNot affected
Red Hat Enterprise Linux 7thunderbirdWill not fix
Will not fix
Red Hat Enterprise Linux 6firefoxWill not fix
Will not fix
Red Hat Enterprise Linux 6thunderbirdWill not fix
Will not fix
npm librarywebpackFixed5.94.0GHSA-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.

References

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.