GHSA-3cqr-58rm-57f8

    Dashboard / Vulnerabilities / GHSA-3cqr-58rm-57f8

    GHSA-3cqr-58rm-57f8

    Published: 10 Feb 2022Last Modified: 10 Sept 2026

    Summary: Arbitrary Code Execution in Handlebars

    Details: Handlebars before 3.0.8 and 4.x before 4.5.3 is vulnerable to Arbitrary Code Execution. The lookup helper fails to properly validate templates, allowing attackers to submit templates that execute arbitrary JavaScript. This can be used to run arbitrary code on a server processing Handlebars templates or in a victim's browser (effectively serving as XSS).

    Affected packages

    Package

    Name: handlebars

    Purl: pkg:npm/handlebars

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -3.0.8

    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
    GHSA-3cqr-58rm-57f8 | CVE-DB