CVE-2024-6531: Bootstrap Cross-Site Scripting (XSS) vulnerability
6.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.2095%
CWE
Published
7/11/2024
Updated
9/6/2024
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:L
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
bootstrap | npm | >= 4.0.0, <= 4.6.2 | 5.0.0 |
bootstrap | rubygems | >= 4.0.0, <= 4.6.2 | 5.0.0 |
bootstrap | nuget | >= 4.0.0, <= 4.6.2 | 5.0.0 |
bootstrap.sass | nuget | >= 4.0.0, <= 4.6.2 | 5.0.0 |
twbs/bootstrap | composer | >= 4.0.0, <= 4.6.2 | 5.0.0 |
org.webjars:bootstrap | maven | >= 4.0.0, <= 4.6.2 | 5.0.0 |
org.webjars.npm:bootstrap | maven | >= 4.0.0, <= 4.6.2 | 5.0.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper handling of href attributes in carousel controls. The Carousel component's JavaScript logic processes navigation targets by reading href values when data-target is absent, without adequate sanitization. The _getTarget function is directly responsible for extracting target identifiers, while _jQueryInterface manages event binding - both critical points where unsanitized href values could be executed as JavaScript. This matches the advisory's description of XSS via data-slide attributes and href exploitation.