{"id":"GHSA-5875-m6jq-vf78","revision":"660cf18d47b549f4bab9f9274c0c80fa","records":[{"revision":"660cf18d47b549f4bab9f9274c0c80fa","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-5875-m6jq-vf78","aliases":["CVE-2022-25865","SNYK-JS-WORKSPACETOOLS-2421201"],"title":"Command injection in workspace-tools","description":"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.","state":0,"publishedAt":"2022-05-14T00:01:08+00:00","modifiedAt":"2026-07-08T06:49:42.022774+00:00","affected":[{"ecosystem":"npm","name":"workspace-tools","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.18.4"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2022-25865","https://github.com/microsoft/workspace-tools/pull/103","https://github.com/microsoft/workspace-tools/commit/9bc7e65ce497f87e1f363fd47b8f802f3d3cd978","https://github.com/microsoft/workspace-tools","https://snyk.io/vuln/SNYK-JS-WORKSPACETOOLS-2421201"],"sourceUrl":"https://github.com/advisories/GHSA-5875-m6jq-vf78","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-5875-m6jq-vf78","identifiers":["GHSA-5875-m6jq-vf78","CVE-2022-25865","SNYK-JS-WORKSPACETOOLS-2421201"]},"retained":false,"historicalAffected":[]}],"coverage":[]}