p PatchFirst

CVE-2024-43788

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 6.4 · Medium · EPSS 1.0% · Fix available

Published
Updated

Stack: system · node

Affected products and versions

  • webpack

    Versions
    • >= 5.0.0-alpha.0, < 5.94.0: Affected

    No fix published

  • node-webpack Debian:12

    Versions
    • 5.105.4+dfsg1+~cs15.13.23-1
    • 5.105.4+dfsg1+~cs15.13.23-2
    • 5.105.4+dfsg1+~cs15.13.23-3
    • 5.106.2+dfsg1+~cs15.15.23-1
    • 5.106.2+dfsg1+~cs15.15.23-2
    • 5.106.2+dfsg1+~cs15.15.23-3
    • 5.107.2+dfsg1+~cs15.16.25-1
    • 5.107.2+dfsg1+~cs15.16.25-1.1
    • 5.107.2+dfsg1+~cs15.16.25-2
    • 5.108.0+dfsg1+~cs14.7.20-1
    • 5.108.0+dfsg1+~cs14.7.20-2
    • 5.108.0+dfsg1+~cs14.7.20-3
    • 5.75.0+dfsg+~cs17.16.14-1
    • 5.75.0+dfsg+~cs17.16.14-1+deb12u1
    • 5.76.1+dfsg1+~cs17.16.16-1
    • 5.76.1+dfsg2+~cs10.8.15-2
    • 5.76.1+dfsg2+~cs10.8.15-3
    • 5.94.0+dfsg1+~cs11.18.26-1
    • 5.94.0+dfsg1+~cs11.18.26-2
    • 5.95.0+dfsg1+~cs11.18.26-1
    • 5.96.1+dfsg1+~cs11.18.26-1
    • 5.97.1+dfsg1+~cs11.18.27-1
    • 5.97.1+dfsg1+~cs11.18.27-2
    • 5.97.1+dfsg1+~cs11.18.27-3
    • 5.97.1+dfsg1+~cs11.18.27-4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-webpack Debian:13

    Affected ranges
    • ECOSYSTEM: < 5.94.0+dfsg1+~cs11.18.26-2

    Update to 5.94.0+dfsg1+~cs11.18.26-2

  • node-webpack Debian:14

    Affected ranges
    • ECOSYSTEM: < 5.94.0+dfsg1+~cs11.18.26-2

    Update to 5.94.0+dfsg1+~cs11.18.26-2

  • webpack npm

    Affected ranges
    • SEMVER: ≥ 5.0.0-alpha.0, < 5.94.0

    Update to 5.94.0

  • node-webpack Ubuntu:18.04:LTS

    Versions
    • 3.5.6-1build3
    • 3.5.6-1build4
    • 3.5.6-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-webpack Ubuntu:20.04:LTS

    Versions
    • 4.7.0-3
    • 4.30.0-7
    • 4.30.0-9
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-webpack Ubuntu:22.04:LTS

    Versions
    • 4.43.0-6build4
    • 4.43.0-7
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-webpack Ubuntu:24.04:LTS

    Versions
    • 5.76.1+dfsg1+~cs17.16.16-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-webpack Ubuntu:25.10

    Versions
    • 5.97.1+dfsg1+~cs11.18.27-2
    • 5.97.1+dfsg1+~cs11.18.27-3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-webpack Ubuntu:26.10

    Versions
    • 5.105.4+dfsg1+~cs15.13.23-2
    • 5.108.0+dfsg1+~cs14.7.20-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-webpack Ubuntu:26.04:LTS

    Versions
    • 5.97.1+dfsg1+~cs11.18.27-3
    • 5.97.1+dfsg1+~cs11.18.27-4
    • 5.105.4+dfsg1+~cs15.13.23-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →