GHSA-5875-m6jq-vf78

    Dashboard / Vulnerabilities / GHSA-5875-m6jq-vf78

    GHSA-5875-m6jq-vf78

    Published: 14 May 2022Last Modified: 8 Jul 2026

    Summary: Command injection in workspace-tools

    Details: The package workspace-tools before 0.18.4 is vulnerable to Command Injection via git argument injection. When calling the fetchRemoteBranch(remote: string, remoteBranch: string, cwd: string) function, both the remote and remoteBranch parameters are passed to the git fetch subcommand in a way that additional flags can be set. The additional flags can be used to perform a command injection.

    Affected packages

    Package

    Name: workspace-tools

    Purl: pkg:npm/workspace-tools

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -0.18.4

    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-5875-m6jq-vf78 | CVE-DB