CVE-2024-43788: webpack Cross-site Scripting
Vulnerability summary
CVE-2024-43788 is a medium (CVSS 6.4) Cross-site Scripting vulnerability in webpack. EPSS estimates a 0.96% chance of exploitation in the next 30 days, higher than 60.8% of scored vulnerabilities. 3 public exploits are recorded.
Advisory lineage
Upstream 0 · Downstream 1 · Related 7Timeline
- 27-08-2024PublishedVulnerability first disclosed.
- 09-01-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
8 scores · 7 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NDiffers
- OSV · DebianEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NDiffers
- OSV · WolfiEcosystem advisory · calculated6.4MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H
- OSV · NpmEcosystem advisory · calculated6.4MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H
- OSV · ChainguardEcosystem advisory · calculated6.4MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H
- NVDNIST6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NDiffers
EPSS trend
Probability
0.96%
Chance of exploitation in the next 30 days
Percentile
61%
Versus all other CVEs
30-day change
0.00 pp
From 0.96% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
3 foundWebpack
Maturity: poc
Exploit Reference (research.securitum.com)
Maturity: unknown
Exploit Reference (scnps.co)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Chainguard13 products
- arangodb-3.11< 3.11.14.5-r19
- arangodb-3.12< 3.12.9.4-r34
- argo-workflows< 3.6.0-r0
- katib-earlystopping< 0.19.0-r31
- katib-suggestion-goptuna-compatAll versions (No fix recorded)
Wolfi11 products
- argo-workflows< 3.6.0-r0
- katib-earlystopping< 0.19.0-r31
- katib-suggestion-goptuna-compatAll versions (No fix recorded)
- katib-suggestion-hyperband< 0.19.0-r31
- katib-suggestion-hyperopt< 0.19.0-r40 | < 0.19.0-r31
Opensuse2 products
- forgejo&distro=openSUSE Tumbleweed< 8.0.3-1.1
- rollup&distro=openSUSE Tumbleweed< 3.29.5-1.1
Debian1 product
- node-webpackAll versions (No fix recorded) | < 5.94.0+dfsg1+~cs11.18.26-2
Npm1 product
- webpack≥ 5.0.0-alpha.0, < 5.94.0
Ubuntu1 product
- node-webpackAll versions (No fix recorded)
Webpack1 product
- webpack≥ 5.0.0-alpha.0, < 5.94.0
Webpack.js1 product
- webpack< 5.94.0
8 vendors · 31 products
References
12 links- github.com/webpack/webpack/security/advisories/GHSA-4vvj-4cpr-p986X Refsource CONFIRMREPORTAdvisoryWEBExploitVendor Advisory
- github.com/webpack/webpack/commit/955e057abc6cc83cbc3fa1e1ef67a49758bf5a61X Refsource MISCREPORTFIXWEBPatch
- research.securitum.com/xss-in-amp4email-dom-clobberingX Refsource MISCREPORTWEBExploitThird Party Advisory
- scnps.co/papers/sp23_domclob.pdfX Refsource MISCREPORTWEBExploitMitigationTechnical DescriptionThird Party Advisory
Show all 12 references
- github.com/webpack/webpackPACKAGE