Vulnerability · Published Jul 11, 2024 · Assigned by HeroDevs
CVE-2024-6485XSS in Bootstrap button component
Medium 6.4
In plain English
A medium-severity cross-site scripting in Bootstrap from Bootstrap. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 43% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
A security vulnerability has been discovered in bootstrap that could enable Cross-Site Scripting (XSS) attacks. The vulnerability is associated with the data-loading-text attribute within the button plugin. This vulnerability can be exploited by injecting malicious JavaScript code into the attribute, which would then be executed when the button's loading state is triggered.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | twitter-bootstrap3 | 3.4.1+dfsg-3+deb12u1 | DEBIAN-CVE-2024-6485 |
| Debian:13 | twitter-bootstrap3 | 3.4.1+dfsg-4 | DEBIAN-CVE-2024-6485 |
| Debian:14 | twitter-bootstrap3 | 3.4.1+dfsg-4 | DEBIAN-CVE-2024-6485 |
| Ubuntu:22.04:LTS | twitter-bootstrap3 | 3.4.1+dfsg-2+deb11u2build0.22.04.1 | USN-7556-1 |
| Ubuntu:22.04:LTS | twitter-bootstrap3 | 3.4.1+dfsg-2+deb11u2build0.22.04.1 | UBUNTU-CVE-2024-6485 |
| Ubuntu:24.04:LTS | twitter-bootstrap3 | 3.4.1+dfsg-3+deb12u1build0.24.04.1 | USN-7556-1 |
| Ubuntu:24.04:LTS | twitter-bootstrap3 | 3.4.1+dfsg-3+deb12u1build0.24.04.1 | UBUNTU-CVE-2024-6485 |
| Ubuntu:24.04:LTS | twitter-bootstrap4 | 4.6.1+dfsg1-4+deb12u1build0.24.04.1 | USN-7556-1 |
| npm | bootstrap | no fix listed | GHSA-vxmc-5x29-h64v |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Bootstrap | Bootstrap | 1.4.0 – through 3.4.1 |
| Bootstrap-sass | bootstrap-sass | 2.3.2 – through 3.4.3 |
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:L