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

Exp

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.

Published: 2024-08-27 Last update: 2026-06-17 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2024-43788 is rated Exploit Available (59.1/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 0.90%). Core evidence: 3 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2024-43788

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2024-43788

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 1.52% 0.90% -0.62%
2 2026-06-05 1.56% 1.52% -0.04%
3 2026-05-23 1.56%

Full EPSS history (18 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2024-43788

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
6.4 3.1 MEDIUM
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
1.6 4.7 [email protected]
6.1 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
2.8 2.7 [email protected]

Weakness enumeration for CVE-2024-43788

GitHub Security Advisory for CVE-2024-43788

GHSA-4vvj-4cpr-p986 · Severity: medium · Ecosystem: npm — Webpack's AutoPublicPathRuntimeModule has a DOM Clobbering Gadget that leads to XSS

OS Trackers for CVE-2024-43788

vendor priority summary link
debian not yet assigned CVE-2024-43788 not yet assigned priority: Debian including 1 source packages (node-webpack), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 3, open 2. https://security-tracker.debian.org/tracker/CVE-2024-43788
redhat medium https://access.redhat.com/security/cve/CVE-2024-43788
suse medium CVE-2024-43788 severity moderate: SUSE including 11 source package names (forgejo-8.0.3-1.1, forgejo-apparmor-8.0.3-1.1, …), 20 product×package rows across 5 product lines (SUSE Linux Enterprise Module for Open Buildservice Development Tools 15 SP7, SUSE Linux Enterprise Module for Python 3 15 SP6, … (5 product lines)): Fixed 20. https://www.suse.com/security/cve/CVE-2024-43788/
ubuntu medium CVE-2024-43788 medium priority: Ubuntu including 1 source packages (node-webpack), 8 status rows across 8 suites (bionic, focal, jammy, noble, oracular, plucky, questing, upstream): needs-triage 6, ignored 2. https://ubuntu.com/security/CVE-2024-43788

Affected software / configurations for CVE-2024-43788

Vendor Product Version Raw CPE
webpack.js webpack < 5.94.0 cpe:2.3:a:webpack.js:webpack:*:*:*:*:*:node.js:*:*

References for CVE-2024-43788

cvelogic Threat Intelligence