Skip to content
  • eileencodes's avatar
    1278c0f0
    Fix and add protections for XSS in names. · 1278c0f0
    eileencodes authored
    Add the method ERB::Util.xml_name_escape to escape dangerous characters
    in names of tags and names of attributes, following the specification of
    XML.
    
    Use that method in the tag helpers of ActionView::Helpers. Add a deprecation
    warning to the option :escape_attributes mentioning the new behavior and the
    transition to :escape, to simplify by applying the option to the whole tag.
    
    [CVE-2022-27777]
    1278c0f0
    Fix and add protections for XSS in names.
    eileencodes authored
    Add the method ERB::Util.xml_name_escape to escape dangerous characters
    in names of tags and names of attributes, following the specification of
    XML.
    
    Use that method in the tag helpers of ActionView::Helpers. Add a deprecation
    warning to the option :escape_attributes mentioning the new behavior and the
    transition to :escape, to simplify by applying the option to the whole tag.
    
    [CVE-2022-27777]
Loading