Skip to content
  • Alvaro Martin Fraguas's avatar
    123f42a5
    Fix and add protections for XSS in names. · 123f42a5
    Alvaro Martin Fraguas 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]
    123f42a5
    Fix and add protections for XSS in names.
    Alvaro Martin Fraguas 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