Advisory

GHSA-5875-m6jq-vf78

Also known as: CVE-2022-25865, SNYK-JS-WORKSPACETOOLS-2421201

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-05-14 00:01 UTC
Modified
2026-07-08 06:49 UTC

Affected packages and fixes

workspace-tools

npm · All systems

Affected

  • introduced 0, fixed 0.18.4 (semver)

Fixed versions

0.18.4

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences