Django Allows Redirect via Data URL
        
  Critical severity
        
          GitHub Reviewed
      
        Published
          May 17, 2022 
          to the GitHub Advisory Database
          •
          Updated Nov 18, 2024 
      
  
Description
        Published by the National Vulnerability Database
      Jul 31, 2012 
    
  
        Published to the GitHub Advisory Database
      May 17, 2022 
    
  
        Reviewed
      Aug 29, 2023 
    
  
        Last updated
      Nov 18, 2024 
    
  
The (1)
django.http.HttpResponseRedirectand (2)django.http.HttpResponsePermanentRedirectclasses in Django before 1.3.2 and 1.4.x before 1.4.1 do not validate the scheme of a redirect target, which might allow remote attackers to conduct cross-site scripting (XSS) attacks via adata:URL.References