Live threats

All CVEs / Microsoft

CVE-2022-25865Microsoft Workspace-tools

Critical 9.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Workspace-tools.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
microsoftworkspace-tools< 0.18.4

Official sources

References

Links published by the sources. Open them with care.