Bootstrap Cross-Site Scripting (XSS) vulnerability for data-* attributes
        
  Moderate severity
        
          GitHub Reviewed
      
        Published
          Jul 11, 2024 
          to the GitHub Advisory Database
          •
          Updated Sep 25, 2025 
      
  
Description
        Published by the National Vulnerability Database
      Jul 11, 2024 
    
  
        Published to the GitHub Advisory Database
      Jul 11, 2024 
    
  
        Reviewed
      Nov 18, 2024 
    
  
        Last updated
      Sep 25, 2025 
    
  
A security vulnerability has been discovered in bootstrap that could enable Cross-Site Scripting (XSS) attacks. The vulnerability is associated with the data-loading-text attribute within the button plugin. This vulnerability can be exploited by injecting malicious JavaScript code into the attribute, which would then be executed when the button's loading state is triggered.
References