GHSA-w3w8-37jv-2c58

    Dashboard / Vulnerabilities / GHSA-w3w8-37jv-2c58

    GHSA-w3w8-37jv-2c58

    Published: 24 Oct 2017Last Modified: 8 Nov 2023
    Aliases:

    Summary: Cross-Site Scripting in mustache

    Details: Versions of `mustache` prior to 2.2.1 are affected by a cross-site scripting vulnerability when attributes in mustache templates are not quoted. ### Example Template: ```<a href={{foo}}/>``` Input: ```{ 'foo' : 'test.com onload=alert(1)'}``` Rendered result: ```<a href=test.com onload=alert(1)/>``` ## Recommendation Update to version 2.2.1 or later. Alternatively, ensure that all attributes in hmustache templates are encapsulated with quotes.

    Affected packages

    Package

    Name: mustache

    Purl: pkg:npm/mustache

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -2.2.1

    Affected versions

    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