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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-08-27 · Modified: 2025-01-09
- Aliases: UBUNTU-CVE-2024-43788, DEBIAN-CVE-2024-43788, CGA-2r2w-g73f-xvgg, CGA-3xpf-j7v6-f7fp, CGA-44jw-xg3c-mcp4, CGA-6p4p-f5rx-2jv8, CGA-7p8g-f49w-2vpj, CGA-7vv3-hm3r-xhrc, CGA-83fr-4cvc-cv26, CGA-8gw6-cwfp-mg88, CGA-9g2x-52pr-92rc, CGA-9p94-vh33-4chh, CGA-c59m-pr8g-qjvv, CGA-cw9x-2pmg-55gg, CGA-gmjg-wr6h-738h, CGA-gpxj-hg8f-x9p2, CGA-hj7g-23wh-g6pf, CGA-m6q4-cxfv-f766, CGA-p365-r9mq-4fw5, CGA-q4jq-x8f6-jmx5, CGA-qv9p-h2jj-gv8m, CGA-qvg7-h5wg-h8h8, CGA-w85h-fvq8-p6wm, CGA-wq67-gf46-9h86, GHSA-4vvj-4cpr-p986, openSUSE-SU-2024:14330-1, openSUSE-SU-2025:15020-1, CGA-4m25-83xw-9m75, CGA-564r-mww8-vrx2, CGA-m294-qp5m-532x, CGA-rj76-rh7r-r64r
- Record: https://cvemate.com/vulnerability/CVE-2024-43788 · JSON: https://cvemate.com/vulnerability/CVE-2024-43788/json

## Description

```text
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.
```

## Signals

- CVSS: 6.4 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H
- EPSS: 0.959%, percentile 62.671%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 3 (github, reference)

## Affected (first 20 of 31)

- chainguard arangodb-3.11 (Chainguard): \< 3.11.14.5-r19
- chainguard arangodb-3.12 (Chainguard): \< 3.12.9.4-r34
- chainguard argo-workflows (Chainguard): \< 3.6.0-r0
- chainguard katib-earlystopping (Chainguard): \< 0.19.0-r31
- chainguard katib-suggestion-goptuna-compat (Chainguard): All versions (No fix recorded) \| \< 0.19.0-r40
- chainguard katib-suggestion-hyperband (Chainguard): \< 0.19.0-r31
- chainguard katib-suggestion-hyperopt (Chainguard): \< 0.19.0-r40 \| \< 0.19.0-r31
- chainguard katib-suggestion-nas-darts (Chainguard): \< 0.19.0-r31
- chainguard katib-suggestion-nas-enas (Chainguard): \< 0.19.0-r31
- chainguard katib-suggestion-optuna-enas (Chainguard): \< 0.19.0-r31
- chainguard katib-suggestion-pbt-enas (Chainguard): \< 0.19.0-r31
- chainguard katib-suggestion-skopt-enas (Chainguard): \< 0.19.0-r31
- chainguard katib-tfevent-metricscollector (Chainguard): \< 0.19.0-r31
- wolfi argo-workflows (Wolfi): \< 3.6.0-r0
- wolfi katib-earlystopping (Wolfi): \< 0.19.0-r31
- wolfi katib-suggestion-goptuna-compat (Wolfi): All versions (No fix recorded) \| \< 0.19.0-r40
- wolfi katib-suggestion-hyperband (Wolfi): \< 0.19.0-r31
- wolfi katib-suggestion-hyperopt (Wolfi): \< 0.19.0-r40 \| \< 0.19.0-r31
- wolfi katib-suggestion-nas-darts (Wolfi): \< 0.19.0-r31
- wolfi katib-suggestion-nas-enas (Wolfi): \< 0.19.0-r31

## 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>
- <https://ubuntu.com/security/CVE-2024-43788>
- <https://www.cve.org/CVERecord?id=CVE-2024-43788>
- <https://security-tracker.debian.org/tracker/CVE-2024-43788>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43788.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-43788>
- <https://github.com/webpack/webpack>
- <https://www.suse.com/security/cve/CVE-2024-43788>

---

Data as of 2026-12-05T07:24:36.460Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
