CVE-2024-6484
JavaScript vulnerability analysis and mitigation

Overview

A Cross-Site Scripting (XSS) vulnerability has been identified in Bootstrap versions 3.2.0 through 3.4.1, specifically affecting the carousel component. The vulnerability was discovered and disclosed on July 11, 2024, and is tracked as CVE-2024-6484. The issue affects the Bootstrap framework's carousel component, which is widely used for developing responsive, mobile-first web sites and applications (HeroDevs Advisory, NVD).

Technical details

The vulnerability exists in the carousel component where the data-slide and data-slide-to attributes can be exploited through the href attribute of an anchor tag due to inadequate sanitization. When an anchor element is used for carousel navigation with these attributes, the href attribute value is not properly sanitized. The issue occurs when the click event's preventDefault() is not applied and the href is evaluated and executed, leading to potential XSS exploitation. The vulnerability has received a CVSS v3.1 base score of 6.1 (Medium) from NIST and 6.4 (Medium) from HeroDevs (NVD).

Impact

If exploited, this vulnerability could potentially enable attackers to execute arbitrary JavaScript within the victim's browser. The cross-site scripting vulnerability allows malicious scripts to be injected into otherwise benign and trusted websites, which could lead to unauthorized access to user data or perform actions on behalf of the user (HeroDevs Advisory).

Mitigation and workarounds

Users of affected Bootstrap versions are advised to either migrate to a newer version of Bootstrap or leverage a commercial support partner for post-EOL security support. HeroDevs has released a patch in their Never-Ending Support (NES) version of Bootstrap 3 (bootstrap@3.4.5) that properly sanitizes href attributes, blocking the potential for XSS attacks through this vector (HeroDevs Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management