CVE-2022-25865: Command injection in workspace-tools
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.80389%
CWE
Published
5/14/2022
Updated
2/2/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| workspace-tools | npm | < 0.18.4 | 0.18.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit diff shows both functions were patched by adding '--' argument separation in git fetch calls. This indicates they previously allowed injecting flags via user-controlled parameters (remote/remoteBranch). The CVE description explicitly implicates fetchRemoteBranch, while fetchRemote shares the same vulnerable pattern. The Snyk PoC demonstrates exploitation via parameter manipulation, and the fix confirms both were attack vectors.