DOMPurify allows Cross-site Scripting (XSS)
        
  Moderate severity
        
          GitHub Reviewed
      
        Published
          Feb 14, 2025 
          to the GitHub Advisory Database
          •
          Updated Jun 30, 2025 
      
  
Description
        Published by the National Vulnerability Database
      Feb 14, 2025 
    
  
        Published to the GitHub Advisory Database
      Feb 14, 2025 
    
  
        Reviewed
      Feb 14, 2025 
    
  
        Last updated
      Jun 30, 2025 
    
  
DOMPurify before 3.2.4 has an incorrect template literal regular expression when SAFE_FOR_TEMPLATES is set to true, sometimes leading to mutation cross-site scripting (mXSS).
References