The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-6485

CVE-2024-6485: Bootstrap Button Plugin XSS Vulnerability

CVE-2024-6485 is a Cross-Site Scripting flaw in Bootstrap's button plugin affecting the data-loading-text attribute. Attackers can inject malicious code that executes during button state changes. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: January 28, 2026

CVE-2024-6485 Overview

A Cross-Site Scripting (XSS) vulnerability has been discovered in Bootstrap that affects the button plugin's data-loading-text attribute. This vulnerability allows attackers to inject malicious JavaScript code into the attribute, which is then executed when the button's loading state is triggered. The flaw stems from improper sanitization of user-controlled input within the Bootstrap framework's button component.

Critical Impact

Attackers can execute arbitrary JavaScript in the context of a user's browser session, potentially leading to session hijacking, credential theft, or malicious actions performed on behalf of authenticated users.

Affected Products

  • Bootstrap (versions using the legacy button plugin with data-loading-text attribute)
  • Debian LTS distributions using vulnerable Bootstrap packages
  • Web applications utilizing affected Bootstrap button components

Discovery Timeline

  • 2024-07-11 - CVE-2024-6485 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2024-6485

Vulnerability Analysis

This vulnerability is classified as Cross-Site Scripting (CWE-79), specifically affecting the Bootstrap button plugin's handling of the data-loading-text attribute. When a button component transitions to its loading state, the framework processes the data-loading-text attribute value to display loading text to users. However, the attribute content is not properly sanitized before being rendered into the DOM.

The attack requires user interaction (clicking the button to trigger the loading state) and network access to deliver the malicious payload. While the attack complexity is high due to the specific conditions required for exploitation, successful attacks can result in significant confidentiality impact through session token theft and moderate integrity and availability impacts.

Root Cause

The root cause lies in insufficient input validation and output encoding within Bootstrap's button plugin. The data-loading-text attribute value is inserted into the DOM without proper HTML entity encoding or JavaScript escaping. This allows specially crafted attribute values containing script tags or JavaScript event handlers to be interpreted as executable code rather than plain text.

Attack Vector

The attack is network-based and requires an attacker to either:

  1. Inject malicious content into a page where Bootstrap buttons use dynamically generated data-loading-text values from user-controlled sources
  2. Convince a user to interact with a specially crafted page containing a Bootstrap button with a malicious data-loading-text attribute

When the button's loading state is triggered (typically through user click interaction), the malicious JavaScript payload embedded in the attribute executes within the victim's browser context. This can be leveraged to steal session cookies, perform actions on behalf of the user, or redirect users to phishing pages.

The vulnerability mechanism involves Bootstrap reading the data-loading-text attribute and inserting its contents directly into the button element's HTML when the loading state activates. Without proper sanitization, payloads such as script tags or event handlers embedded in this attribute will execute. For detailed technical analysis, refer to the HeroDev CVE-2024-6485 Detail.

Detection Methods for CVE-2024-6485

Indicators of Compromise

  • Unusual JavaScript execution patterns originating from Bootstrap button elements
  • Web application logs showing suspicious data-loading-text attribute values containing script tags, event handlers, or encoded JavaScript
  • Client-side security tools detecting inline script execution from button elements

Detection Strategies

  • Implement Content Security Policy (CSP) headers with strict script-src directives to detect and block inline script execution
  • Deploy web application firewall (WAF) rules to identify XSS payloads in HTTP requests targeting Bootstrap button attributes
  • Use browser developer tools or security scanners to audit data-loading-text attributes for suspicious content
  • Monitor for DOM manipulation patterns consistent with XSS exploitation

Monitoring Recommendations

  • Enable client-side JavaScript error logging to capture potential XSS attack attempts
  • Configure SentinelOne Singularity to monitor for anomalous script execution in web browser contexts
  • Implement server-side logging of all user-supplied input that may populate Bootstrap button attributes
  • Regularly scan web applications for XSS vulnerabilities using automated security testing tools

How to Mitigate CVE-2024-6485

Immediate Actions Required

  • Audit all Bootstrap implementations in your environment to identify usage of the data-loading-text attribute
  • Implement strict input validation and output encoding for any user-controlled data that populates Bootstrap button attributes
  • Deploy Content Security Policy headers to restrict inline script execution as a defense-in-depth measure
  • Consider removing or replacing the vulnerable button plugin functionality if not essential to application operation

Patch Information

Organizations using Debian LTS should review the Debian LTS Announcement for patched package availability. For other distributions and direct Bootstrap usage, consult the HeroDev vulnerability directory for the latest remediation guidance and patch information.

Workarounds

  • Sanitize all user input before it reaches the data-loading-text attribute by encoding HTML special characters
  • Replace usage of data-loading-text with safer alternatives that do not execute dynamic content
  • Implement strict CSP headers with script-src 'self' to prevent inline script execution
  • Use a JavaScript sanitization library to cleanse any dynamic content before DOM insertion
bash
# Example CSP header configuration for Apache
# Add to .htaccess or Apache configuration
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'"

# Example CSP header configuration for Nginx
# Add to nginx.conf server block
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'";

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechBootstrap

  • SeverityMEDIUM

  • CVSS Score6.4

  • EPSS Probability0.14%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:L
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityLow
  • AvailabilityLow
  • CWE References
  • CWE-79
  • Technical References
  • HeroDev CVE-2024-6485 Detail

  • Debian LTS Announcement
  • Related CVEs
  • CVE-2025-1647: Bootstrap Framework XSS Vulnerability

  • CVE-2024-6531: Bootstrap Rejected CVE Vulnerability

  • CVE-2024-6484: Bootstrap Rejected CVE Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English