AngularJS allows attackers to bypass common image source restrictions
        
  Low severity
        
          GitHub Reviewed
      
        Published
          Sep 9, 2024 
          to the GitHub Advisory Database
          •
          Updated Nov 3, 2025 
      
  
Description
        Published by the National Vulnerability Database
      Sep 9, 2024 
    
  
        Published to the GitHub Advisory Database
      Sep 9, 2024 
    
  
        Reviewed
      Sep 9, 2024 
    
  
        Last updated
      Nov 3, 2025 
    
  
Improper sanitization of the value of the
[srcset]attribute in AngularJS allows attackers to bypass common image source restrictions, which can also lead to a form of Content Spoofing https://owasp.org/www-community/attacks/Content_Spoofing .This issue affects AngularJS versions 1.3.0-rc.4 and greater.
Note:
The AngularJS project is End-of-Life and will not receive any updates to address this issue. For more information see here https://docs.angularjs.org/misc/version-support-status .
References