Skip to content
OpenAdvisories

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
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 —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS node-webpack No fix yet —
Ubuntu 18.04 LTS node-webpack No fix yet —
ReleasePackageFixed inAdvisory
SLES 3 pgadmin4 8.5-150600.3.6.1 SUSE-SU-2024:3771-1
ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
Azure Linux 3 python-tensorboard 2.16.2-3 —

Wolfi

ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm webpack >= 5.0.0-alpha.0, < 5.94.0 5.94.0 GHSA-4vvj-4cpr-p986

Advisories 7

References