Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. bootstrap
  4. ›
  5. CVE-2024-6531

CVE-2024-6531: Withdrawn Advisory: Bootstrap Cross-Site Scripting (XSS) vulnerability

July 11, 2024 (updated October 9, 2025)

Withdrawn Advisory

This advisory is withdrawn because it was not a security issue in Bootstrap. Bootstrap’s JavaScript is not intended to sanitize unsafe or intentionally dangerous HTML. As such, the reported behavior fell outside the scope of Bootstrap’s security model, and the associated CVE has been rescinded.

Original Descripton

A vulnerability has been identified in Bootstrap that exposes users to Cross-Site Scripting (XSS) attacks. The issue is present in the carousel component, where the data-slide and data-slide-to attributes can be exploited through the href attribute of an tag due to inadequate sanitization. This vulnerability could potentially enable attackers to execute arbitrary JavaScript within the victim’s browser.

References

  • github.com/advisories/GHSA-vc8w-jr9v-vj7f
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap/CVE-2024-6531.yml
  • github.com/twbs/bootstrap
  • lists.debian.org/debian-lts-announce/2025/04/msg00021.html
  • nvd.nist.gov/vuln/detail/CVE-2024-6531
  • www.herodevs.com/vulnerability-directory/cve-2024-6531

Code Behaviors & Features

Detect and mitigate CVE-2024-6531 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 starting from 4.0.0 before 5.0.0

Fixed versions

  • 5.0.0

Solution

Upgrade to version 5.0.0 or above.

Impact 6.4 MEDIUM

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

Learn more about CVSS

Weakness

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

Source file

gem/bootstrap/CVE-2024-6531.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 19 Oct 2025 00:28:55 +0000.