CVE-2024-6531: Withdrawn Advisory Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-vc8w-jr9v-vj7f
CVSS 6.4
CWE-79
Published
Advisory Summary

CVE-2024-6531 is a MODERATE (CVSS 6.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Withdrawn Advisory libraries in the npm ecosystem. The issue involves bootstrap cross-site scripting (xss) vulnerability. Remediation is available by upgrading affected packages to version 5.0.0.

CVE-2024-6531 at a Glance

CVE Identifier CVE-2024-6531
GHSA Identifier GHSA-vc8w-jr9v-vj7f
Severity MODERATE
CVSS v3.1 Base Score 6.4
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Withdrawn Advisory
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 6.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2024-6531

To remediate this vulnerability, upgrade all affected Withdrawn Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

bootstrap fixed: 5.0.0
npm install bootstrap@5.0.0
bootstrap fixed: 5.0.0
Upgrade bootstrap to 5.0.0
bootstrap fixed: 5.0.0
Upgrade bootstrap to 5.0.0
bootstrap.sass fixed: 5.0.0
Upgrade bootstrap.sass to 5.0.0
twbs/bootstrap fixed: 5.0.0
Upgrade twbs/bootstrap to 5.0.0
org.webjars:bootstrap fixed: 5.0.0
<dependency>
    <groupId>org.webjars</groupId>
    <artifactId>bootstrap</artifactId>
    <version>5.0.0</version>
</dependency>
org.webjars.npm:bootstrap fixed: 5.0.0
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>bootstrap</artifactId>
    <version>5.0.0</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls bootstrap

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2024-6531, inspect your project dependencies using npm:

npm ls bootstrap

Analyze the terminal output to locate any version of Withdrawn Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.0.0), your application is affected.

Note: The npm ls bootstrap command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Withdrawn Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## 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 <a> tag due to inadequate sanitization. This vulnerability could potentially enable attackers to execute arbitrary JavaScript within the victim's browser.

CVE-2024-6531 Affected Withdrawn Advisory Versions

7 component(s)
Fixed Versions:
5.0.0
Product / Package Ecosystem Affected Versions Fixed Version
bootstrap
npm
≥ 4.0.0
< 5.0.0
5.0.0
bootstrap
RubyGems
≥ 4.0.0
< 5.0.0
5.0.0
bootstrap
NuGet
≥ 4.0.0
< 5.0.0
5.0.0
bootstrap.sass
NuGet
≥ 4.0.0
< 5.0.0
5.0.0
twbs/bootstrap
Packagist
≥ 4.0.0
< 5.0.0
5.0.0
org.webjars:bootstrap
Maven
≥ 4.0.0
< 5.0.0
5.0.0
org.webjars.npm:bootstrap
Maven
≥ 4.0.0
< 5.0.0
5.0.0

References

Frequently Asked Questions

What is CVE-2024-6531?
CVE-2024-6531 is a security vulnerability in Withdrawn Advisory involving Bootstrap Cross-Site Scripting (XSS) vulnerability under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Withdrawn Advisory versions are affected?
Affected versions include releases prior to 5.0.0 across affected packages: bootstrap, bootstrap.sass, twbs/bootstrap, org.webjars:bootstrap, org.webjars.npm:bootstrap.
What version fixes CVE-2024-6531?
Upgrading to 5.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is bootstrap affected?
Yes, bootstrap is affected in releases prior to 5.0.0. Upgrade your dependency to 5.0.0 or later.
Is bootstrap.sass affected?
Yes, bootstrap.sass is affected in releases prior to 5.0.0. Upgrade your dependency to 5.0.0 or later.
What is the CVSS score of CVE-2024-6531?
CVE-2024-6531 has a CVSS v3.1 base score of 6.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:L.
What CWE is associated with CVE-2024-6531?
CVE-2024-6531 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check npm dependencies for CVE-2024-6531?
Run the dependency tree command: 'npm ls bootstrap'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vc8w-jr9v-vj7f",
  "modified" : "2025-10-09T20:55:06Z",
  "published" : "2024-07-11T18:31:14Z",
  "withdrawn" : "2025-10-09T20:55:06Z",
  "aliases" : [ "CVE-2024-6531" ],
  "summary" : "Withdrawn Advisory: Bootstrap Cross-Site Scripting (XSS) vulnerability",
  "details" : "## Withdrawn Advisory\nThis 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.\n\n## Original Descripton\n\nA 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 <a> tag due to inadequate sanitization. This vulnerability could potentially enable attackers to execute arbitrary JavaScript within the victim's browser.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:L/SA:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "bootstrap"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "5.0.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.6.2"
    }
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "bootstrap"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "5.0.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.6.2"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "bootstrap"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "5.0.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.6.2"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "bootstrap.sass"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "5.0.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.6.2"
    }
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "twbs/bootstrap"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "5.0.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.6.2"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.webjars:bootstrap"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "5.0.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.6.2"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.webjars.npm:bootstrap"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "5.0.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.6.2"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-6531"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap/CVE-2024-6531.yml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/twbs/bootstrap"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2025/04/msg00021.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.herodevs.com/vulnerability-directory/cve-2024-6531"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-08-01T21:29:23Z",
    "nvd_published_at" : "2024-07-11T18:15:06Z"
  }
}