ubuntu-cve-2024-43788
Vulnerability from osv_ubuntu
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": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "webpack",
"binary_version": "3.5.6-2"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "node-webpack",
"purl": "pkg:deb/ubuntu/node-webpack@3.5.6-2?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.5.6-1build3",
"3.5.6-1build4",
"3.5.6-2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "webpack",
"binary_version": "4.30.0-9"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "node-webpack",
"purl": "pkg:deb/ubuntu/node-webpack@4.30.0-9?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.7.0-3",
"4.30.0-7",
"4.30.0-9"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "webpack",
"binary_version": "4.43.0-7"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "node-webpack",
"purl": "pkg:deb/ubuntu/node-webpack@4.43.0-7?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.43.0-6build4",
"4.43.0-7"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "webpack",
"binary_version": "5.76.1+dfsg1+~cs17.16.16-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "node-webpack",
"purl": "pkg:deb/ubuntu/node-webpack@5.76.1+dfsg1+~cs17.16.16-1?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"5.76.1+dfsg1+~cs17.16.16-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "webpack",
"binary_version": "5.97.1+dfsg1+~cs11.18.27-3"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "node-webpack",
"purl": "pkg:deb/ubuntu/node-webpack@5.97.1+dfsg1+~cs11.18.27-3?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"5.97.1+dfsg1+~cs11.18.27-2",
"5.97.1+dfsg1+~cs11.18.27-3"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "webpack",
"binary_version": "5.105.4+dfsg1+~cs15.13.23-2"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "node-webpack",
"purl": "pkg:deb/ubuntu/node-webpack@5.105.4+dfsg1+~cs15.13.23-2?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"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"
]
}
],
"aliases": [],
"details": "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\u2019s `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.",
"id": "UBUNTU-CVE-2024-43788",
"modified": "2026-05-20T15:11:32Z",
"published": "2024-08-27T17:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2024-43788"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2024-43788"
},
{
"type": "REPORT",
"url": "https://github.com/webpack/webpack/security/advisories/GHSA-4vvj-4cpr-p986"
},
{
"type": "REPORT",
"url": "https://github.com/webpack/webpack/commit/955e057abc6cc83cbc3fa1e1ef67a49758bf5a61"
},
{
"type": "REPORT",
"url": "https://research.securitum.com/xss-in-amp4email-dom-clobbering"
},
{
"type": "REPORT",
"url": "https://scnps.co/papers/sp23_domclob.pdf"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2024-43788"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.