workspace-tools
Affected
- introduced
0, fixed0.18.4(semver)
Fixed versions
0.18.4
Fix
- Fixed version
0.18.4npm install [email protected]
Advisory
Also known as: CVE-2022-25865, SNYK-JS-WORKSPACETOOLS-2421201
Command injection in workspace-tools
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.
Critical Basis: The source's own band: CRITICAL
0, fixed 0.18.4 (semver)0.18.4
0.18.4npm install [email protected]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
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0