Skip to main content
MEDIUM

CVE-2024-43788

CVSS v3

6.1

MEDIUM

EPSS Score

1.0 %

exploit probability, as of 2026-10-17

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for webpack. Watch webpack in CVE Watch Free account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • webpacknpmfrom 5.0.0-alpha.0 · fixed in 5.94.0

Vendor advisories

  • CVE-2024-43788 Red Hat Product Security184 products fixed · 41 known affected

    webpack: DOM Clobbering vulnerability in AutoPublicPathRuntimeModule

    openshift-logging/logging-view-plugin-rhel8 as a component of Logging Subsystem for Red Hat OpenShift · mta/mta-ui-rhel9 as a component of Migration Toolkit for Applications 7 · webpack.src as a component of Migration Toolkit for Runtimes

  • RHSA-2025:1249 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: updated discovery container images

  • RHSA-2025:0323 Red Hat Product Security3 products fixed

    Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.14.13 Bug Fix Update

  • RHSA-2024:10906 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Migration Toolkit for Containers (MTC) 1.8.5 security and bug fix update

  • RHSA-2024:10214 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Data Grid 8.5.2 security update

  • RHSA-2024:8676 Red Hat Product Security3 products fixed

    Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.17.0 Security, Enhancement, & Bug Fix Update

7 more advisories

Full record on NVD

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.

Technical details

Published
2024-08-27

Frequently asked questions

What is CVE-2024-43788?

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.

Is CVE-2024-43788 actively exploited?

Active exploitation of CVE-2024-43788 has not been confirmed. Its EPSS score was 1.0% on 2026-10-17, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-43788?

CVE-2024-43788 has a CVSS v3 base score of 6.1 (MEDIUM severity).

Running webpack? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · 50 free checks/month · Free API key