Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @rspack/core
  4. ›
  5. GHSA-84jw-g43v-8gjm

GHSA-84jw-g43v-8gjm: DOM Clobbering Gadget found in Rspack's AutoPublicPathRuntimeModule that leads to XSS

September 19, 2024

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

We found the real-world exploitation of this gadget in the Canvas LMS which allows XSS attack happens through an javascript code compiled by Webpack (the vulnerable part is from Webpack). We believe this is a severe issue. If Webpack’s code is not resilient to DOM Clobbering attacks, it could lead to significant security vulnerabilities in any web application using Webpack-compiled code.

References

  • github.com/advisories/GHSA-84jw-g43v-8gjm
  • github.com/web-infra-dev/rspack
  • github.com/web-infra-dev/rspack/commit/0303c68bd76da258c9fd483936d3a00b9761aad0
  • github.com/web-infra-dev/rspack/security/advisories/GHSA-84jw-g43v-8gjm

Code Behaviors & Features

Detect and mitigate GHSA-84jw-g43v-8gjm with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.0.0-rc.1

Fixed versions

  • 1.0.0-rc.1

Solution

Upgrade to version 1.0.0-rc.1 or above.

Impact 6.4 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/@rspack/core/GHSA-84jw-g43v-8gjm.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:44 +0000.