CVE-2024-6531: Withdrawn Advisory Cross-Site Scripting Vulnerability
MODERATECVE-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
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).
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.
npm install bootstrap@5.0.0
Upgrade bootstrap to 5.0.0
Upgrade bootstrap to 5.0.0
Upgrade bootstrap.sass to 5.0.0
Upgrade twbs/bootstrap to 5.0.0
<dependency>
<groupId>org.webjars</groupId>
<artifactId>bootstrap</artifactId>
<version>5.0.0</version>
</dependency>
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>bootstrap</artifactId>
<version>5.0.0</version>
</dependency>
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
CVE-2024-6531 Affected Withdrawn Advisory Versions
7 component(s)| 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?
Which Withdrawn Advisory versions are affected?
What version fixes CVE-2024-6531?
Is bootstrap affected?
Is bootstrap.sass affected?
What is the CVSS score of CVE-2024-6531?
What CWE is associated with CVE-2024-6531?
How can I check npm dependencies for CVE-2024-6531?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}