NVD Vulnerability Detail
Search Exploit, PoC
CVE-2024-43788
Summary

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.

Publication Date Aug. 28, 2024, 2:15 a.m.
Registration Date Aug. 28, 2024, 5 a.m.
Last Update Sept. 4, 2024, 12:15 a.m.
CVSS3.1 : MEDIUM
スコア 6.1
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
攻撃元区分(AV) ネットワーク
攻撃条件の複雑さ(AC)
攻撃に必要な特権レベル(PR) 不要
利用者の関与(UI)
影響の想定範囲(S) 変更あり
機密性への影響(C)
完全性への影響(I)
可用性への影響(A) なし
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:webpack.js:webpack:*:*:*:*:*:node.js:*:* 5.94.0
Related information, measures and tools
Common Vulnerabilities List

JVN Vulnerability Information
webpack.js の Node.js 用 webpack におけるクロスサイトスクリプティングの脆弱性
Title webpack.js の Node.js 用 webpack におけるクロスサイトスクリプティングの脆弱性
Summary

webpack.js の Node.js 用 webpack には、クロスサイトスクリプティングの脆弱性が存在します。

Possible impacts 情報を取得される、および情報を改ざんされる可能性があります。
Solution

ベンダアドバイザリまたはパッチ情報が公開されています。参考情報を参照して適切な対策を実施してください。

Publication Date Aug. 27, 2024, midnight
Registration Date Sept. 2, 2024, 10:44 a.m.
Last Update Sept. 2, 2024, 10:44 a.m.
Affected System
webpack.js
webpack 5.94.0 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
その他
Change Log
No Changed Details Date of change
1 [2024年09月02日]
  掲載
Sept. 2, 2024, 10:44 a.m.