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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| webpack | webpack | >= 5.0.0-alpha.0, < 5.94.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-webpack | 5.94.0+dfsg1+~cs11.18.26-2 | — |
| Debian 13 | node-webpack | 5.94.0+dfsg1+~cs11.18.26-2 | — |
| Debian 12 | node-webpack | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | node-webpack | No fix yet | — |
| Ubuntu 26.04 LTS | node-webpack | No fix yet | — |
| Ubuntu 25.10 | node-webpack | No fix yet | — |
| Ubuntu 24.04 LTS | node-webpack | No fix yet | — |
| Ubuntu 22.04 LTS | node-webpack | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | node-webpack | No fix yet | — |
| Ubuntu 18.04 LTS | node-webpack | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 3 | pgadmin4 | 8.5-150600.3.6.1 | SUSE-SU-2024:3771-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | forgejo | 8.0.3-1.1 | openSUSE-SU-2024:14330-1 |
| openSUSE Tumbleweed | rollup | 3.29.5-1.1 | openSUSE-SU-2025:15020-1 |
| openSUSE Leap 15.6 | pgadmin4 | 8.5-150600.3.6.1 | SUSE-SU-2024:3771-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | python-tensorboard | 2.16.2-3 | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | argo-workflows | 3.6.0-r0 | — |
| Wolfi rolling | katib-earlystopping +8 | 0.19.0-r31 | — |
| Wolfi rolling | katib-suggestion-goptuna-compat | 0.19.0-r40 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
batzionb/webpack-cve-2024-43788 ★ 0 · May 12, 2025
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | webpack | >= 5.0.0-alpha.0, < 5.94.0 | 5.94.0 | GHSA-4vvj-4cpr-p986 |
Advisories 7
- WID-SEC-2024-3089 Red Hat Enterprise Linux (Cryostat): Mehrere Schwachstellen ermöglichen Cross-Site Scripting BSI CERT-Bund (WID) · Mar 15, 2026
- WID-SEC-2024-3250 Red Hat OpenShift: Mehrere Schwachstellen BSI CERT-Bund (WID) · Feb 8, 2026
- openSUSE-SU-2024:14330-1 forgejo-8.0.3-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2025:15020-1 rollup-3.29.5-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:3771-1 Security update for pgadmin4 SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-3544 Red Hat JBoss Data Grid: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 17, 2025
- WID-SEC-2025-0043 IBM QRadar SIEM (Log Source Management App): Mehrere Schwachstellen BSI CERT-Bund (WID) · Mar 17, 2025
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