GHSA-ch3h-j2vf-95pv

    Dashboard / Vulnerabilities / GHSA-ch3h-j2vf-95pv

    GHSA-ch3h-j2vf-95pv

    Published: 27 Apr 2022Last Modified: 16 Feb 2024

    Summary: XSS Vulnerability in Action View tag helpers

    Details: There is a possible XSS vulnerability in Action View tag helpers. Passing untrusted input as hash keys can lead to a possible XSS vulnerability. This vulnerability has been assigned the CVE identifier CVE-2022-27777. Versions Affected: ALL Not affected: NONE Fixed Versions: 7.0.2.4, 6.1.5.1, 6.0.4.8, 5.2.7.1 ## Impact If untrusted data is passed as the hash key for tag attributes, there is a possibility that the untrusted data may not be properly escaped which can lead to an XSS vulnerability. Impacted code will look something like this: ``` check_box_tag('thename', 'thevalue', false, aria: { malicious_input => 'thevalueofaria' }) ``` Where the "malicious_input" variable contains untrusted data. All users running an affected release should either upgrade or use one of the workarounds immediately. ## Releases The FIXED releases are available at the normal locations. ## Workarounds Escape the untrusted data before using it as a key for tag helper methods.

    Affected packages

    Package

    Name: actionview

    Purl: pkg:gem/actionview

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -5.2.7.1

    Affected versions

    4.1.0
    4.1.0.beta1
    4.1.0.beta2
    4.1.0.rc1
    4.1.0.rc2
    4.1.1
    4.1.10
    4.1.10.rc1
    4.1.10.rc2
    4.1.10.rc3
    4.1.10.rc4
    4.1.11
    4.1.12
    4.1.12.rc1
    4.1.13
    4.1.13.rc1
    4.1.14
    4.1.14.1
    4.1.14.2
    4.1.14.rc1
    4.1.14.rc2
    4.1.15
    4.1.15.rc1
    4.1.16
    4.1.16.rc1
    4.1.2
    4.1.2.rc1
    4.1.2.rc2
    4.1.2.rc3
    4.1.3
    4.1.4
    4.1.5
    4.1.6
    4.1.6.rc1
    4.1.6.rc2
    4.1.7
    4.1.7.1
    4.1.8
    4.1.9
    4.1.9.rc1

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-ch3h-j2vf-95pv | CVE-DB