DOM Clobbering Vulnerability in Webpack: XSS Risk in Node-Webpack Packages

node-webpack Updated 03 Oct 2025

Summary

27/08/2024
N/A
No i
Medium
6.4

UBUNTU-CVE-2024-43788: Webpack is a module bundler. Affects node-webpack versions 3.5.6-1build3 – 3.5.6-2. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Webpack is a powerful module bundler primarily used for bundling JavaScript files for web applications. It can also transform and package various resources and assets. The affected package, node-webpack, is a Debian package that integrates Webpack into the Ubuntu ecosystem. This vulnerability exposes applications using Webpack to potential cross-site scripting (XSS) attacks due to improper handling of HTML elements.

Vulnerability Detail

The vulnerability arises from a DOM Clobbering issue in Webpack's AutoPublicPathRuntimeModule. This flaw allows an attacker to exploit scriptless HTML elements, such as an img tag with an unsanitized name attribute, to execute XSS attacks. Real-world exploitation has been observed in applications like Canvas LMS, where attackers can inject malicious code through Webpack-generated files. The vulnerability is classified with a CVSS score of 6.4, indicating a medium severity risk.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

Currently, there are no known workarounds for this vulnerability. The best course of action is to upgrade to the patched version as soon as possible.

Conclusion

The DOM Clobbering vulnerability in Webpack poses a significant risk of XSS attacks in applications using the affected node-webpack packages. Users are strongly advised to upgrade to the patched version to protect their applications from potential exploitation.

See every vulnerability recorded for node-webpack →

Share this vulnerability

FAQ

The vulnerability is a DOM Clobbering issue that can lead to cross-site scripting (XSS) attacks in applications using Webpack.

The affected versions include node-webpack 3.5.6-2, 4.30.0-9, 4.43.0-7, 5.76.1+dfsg1+~cs17.16.16-1, and 5.97.1+dfsg1+~cs11.18.27-2.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

While there are no workarounds, it is crucial to prioritize the upgrade to the patched version to mitigate the risk of exploitation.

The CVSS score for this vulnerability is 6.4, indicating a medium severity risk.

Related vulnerabilities

Recent vulnerabilities recorded for node-webpack.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback