cve.bz

CVE-2024-43788 webpack.js webpack: Cross-site Scripting

6.1 mediumExploit referenceEPSS 1.0%Fix available

Medium (6.1) in webpack.js webpack. EPSS 1.0% estimated probability of exploitation activity in the next 30 days. Fixed in webpack 5.94.0.

On this page
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.

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 62nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2024-08-27. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-43788 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-43788?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-43788?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-43788 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
webpack.js:webpackbefore 5.94.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4vvj-4cpr-p986npmwebpack>=5.0.0-alpha.0 <5.94.05.94.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12node-webpackno fix listedDEBIAN-CVE-2024-43788
Debian13, 14node-webpack5.94.0+dfsg1+~cs11.18.26-2DEBIAN-CVE-2024-43788
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 4 morenode-webpackno fix listedUBUNTU-CVE-2024-43788
SUSELinux Enterprise Module for Python 3 15 SP6pgadmin48.5-150600.3.6.1SUSE-SU-2024:3771-1
openSUSELeap 15.6pgadmin48.5-150600.3.6.1SUSE-SU-2024:3771-1
openSUSETumbleweedforgejo8.0.3-1.1openSUSE-SU-2024:14330-1
openSUSETumbleweedrollup3.29.5-1.1openSUSE-SU-2025:15020-1
Azure Linux3python-tensorboard2.16.2-3AZL-48365

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The severity of this issue is classified as moderate rather than important due to the specific conditions required for exploitation. DOM Clobbering, while serious, can only be leveraged in environments where an attacker has the ability to inject unsanitized HTML attributes (e.g., `name` or `id`) into a web page. This limits the attack surface to applications that improperly sanitize user input and rely on Webpack-generated files. Furthermore, the exploitation depends on existing vulnerabilities in the sanitization process, rather than the direct execution of arbitrary scripts. As a result, while the issue can lead to XSS, its impact is constrained by the contextual requirement of HTML injection, lowering its overall severity compared to more direct XSS vectors.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Cryostat 3 on RHEL 8cryostat-tech-preview/cryostat-db-rhel8:3.0.1-3Fixed 2024-10-07RHSA-2024:7706
Cryostat 3 on RHEL 8cryostat-tech-preview/cryostat-grafana-dashboard-rhel8:3.0.1-3Fixed 2024-10-07RHSA-2024:7706
Cryostat 3 on RHEL 8cryostat-tech-preview/cryostat-operator-bundle:3.0.1-3Fixed 2024-10-07RHSA-2024:7706
Cryostat 3 on RHEL 8cryostat-tech-preview/cryostat-ose-oauth-proxy-rhel8:3.0.1-3Fixed 2024-10-07RHSA-2024:7706
Cryostat 3 on RHEL 8cryostat-tech-preview/cryostat-reports-rhel8:3.0.1-3Fixed 2024-10-07RHSA-2024:7706
Cryostat 3 on RHEL 8cryostat-tech-preview/cryostat-rhel8:3.0.1-3Fixed 2024-10-07RHSA-2024:7706
Cryostat 3 on RHEL 8cryostat-tech-preview/cryostat-rhel8-operator:3.0.1-3Fixed 2024-10-07RHSA-2024:7706
Cryostat 3 on RHEL 8cryostat-tech-preview/cryostat-storage-rhel8:3.0.1-3Fixed 2024-10-07RHSA-2024:7706
Cryostat 3 on RHEL 8cryostat-tech-preview/jfr-datasource-rhel8:3.0.1-3Fixed 2024-10-07RHSA-2024:7706
Discovery 1 for RHEL 9discovery/discovery-server-rhel9:1.12.0-1Fixed 2025-02-10RHSA-2025:1249
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-view-plugin-rhel8Fix deferred
Migration Toolkit for Applications 7mta/mta-ui-rhel9Will not fix
Migration Toolkit for RuntimeswebpackFix deferred
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-console-plugin-rhel9Affected
Multicluster Engine for Kubernetesmulticluster-engine/console-mce-rhel9Not affected
Multicluster Engine for Kubernetesmulticluster-engine/multicluster-engine-console-mce-rhel9Not affected
Node HealthCheck Operatorworkload-availability/node-remediation-console-rhel8Affected
OpenShift Lightspeedopenshift-lightspeed-beta/lightspeed-console-plugin-rhel9Affected
OpenShift Pipelinesopenshift-pipelines/pipelines-console-plugin-rhel8Affected
OpenShift Pipelinesopenshift-pipelines/pipelines-hub-ui-rhel8Will not fix
94 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-43788.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON