CVE-2022-25865Microsoft Workspace-tools
Critical 9.8 No auth needed
Follow: this CVE · Microsoft · Microsoft Workspace-tools We alert you by email or Slack (account required).
- Priority
- 75
- CVSS 3.1
- 9.8
- EPSS
- 8.8% probability of exploitation in 30 days · percentile 96
- Auth required
- No
- Published
- May 13, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Windows
- Weakness (CWE)
- CWE-88
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
The package workspace-tools before 0.18.4 are 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.
What to do
- Apply the vendor's security update for Workspace-tools.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | workspace-tools |
< 0.18.4 |
0.18.4 |
npm install workspace-tools@0.18.4 |
Per OSV / GitHub Advisories (GHSA-5875-m6jq-vf78). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| microsoft | workspace-tools | < 0.18.4 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- snyk.io Exploit Third Party Advisory