6.4

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

Modified
AliasesUBUNTU-CVE-2024-43788DEBIAN-CVE-2024-43788CGA-2r2w-g73f-xvgg
Published 27-08-2024Last modified 09-01-2025

Vulnerability summary

CVE-2024-43788 is a medium (CVSS 6.4) vulnerability in webpack. EPSS estimates a 0.96% chance of exploitation in the next 30 days, higher than 62.6% of scored vulnerabilities. 3 public exploits are recorded.

Priority
Routine

Not severe (CVSS 6.4, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.4/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.96%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits3github, reference

Advisory lineage

Upstream 0 · Downstream 1 · Related 7

Timeline

  1. 27-08-2024
    PublishedVulnerability first disclosed.
  2. 09-01-2025
    Last 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

EPSS trend

Probability

0.96%

Chance of exploitation in the next 30 days

Percentile

63%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.96% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

3 found
  • githubUnverified

    Webpack

    Maturity: poc

  • referenceUnverified

    Exploit Reference (research.securitum.com)

    Maturity: unknown

  • referenceUnverified

    Exploit Reference (scnps.co)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

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) | < 0.19.0-r40
Wolfi11 products
  • argo-workflows< 3.6.0-r0
  • katib-earlystopping< 0.19.0-r31
  • katib-suggestion-goptuna-compatAll versions (No fix recorded) | < 0.19.0-r40
  • 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.js1 product

8 vendors · 31 products

References

12 links
Show all 12 references