Description
An issue in @rog0x/mcp-git-tools 1.0.1 allows a remote attacker to execute arbitrary code via the resolveBaseBranch function.
Published: 2026-10-23
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

An insecure implementation of the resolveBaseBranch function in the npm package @rog0x/mcp-git-tools 1.0.1 lets a remote attacker supply crafted input that triggers arbitrary code execution, giving attacker control over system resources and the ability to exfiltrate data, pivot, or fully compromise the environment where the tool runs. This flaw is a classic example of code injection due to inadequate input validation.

Affected Systems

The vulnerability affects the npm package @rog0x/mcp-git-tools version 1.0.1. No other vendors or product versions are listed; any installation of this package that uses resolveBaseBranch with potentially untrusted data is at risk.

Risk and Exploitability

The CVSS score of 7.5 indicates high severity. The EPSS score is 0.00503 (<1%), indicating a very low but non-zero probability of exploitation. The absence of a KEV listing suggests no widespread exploitation yet. The likely attack vector is remote, where an adversary can influence the input to resolveBaseBranch via external triggers such as webhooks or scripts, leading to code execution.

Generated by OpenCVE AI on October 29, 2026 at 04:51 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update @rog0x/mcp-git-tools to a patched version or remove the package if no update is available.
  • Avoid calling resolveBaseBranch with data that can be controlled by external users; validate and sanitize inputs before invoking the function.
  • Regularly check npm and security advisories for updates to this package and apply patches immediately.

Generated by OpenCVE AI on October 29, 2026 at 04:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-jwc4-922r-f2rw @rog0x/mcp-git-tools executes arbitrary code via the resolveBaseBranch function
History

Thu, 29 Oct 2026 05:15:00 +0000

Type Values Removed Values Added
Title Remote Code Execution via resolveBaseBranch Injection in @rog0x/mcp-git-tools

Thu, 29 Oct 2026 03:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-94
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 23 Oct 2026 15:00:00 +0000

Type Values Removed Values Added
Description An issue in @rog0x/mcp-git-tools 1.0.1 allows a remote attacker to execute arbitrary code via the resolveBaseBranch function.
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AC:H/AV:N/A:H/C:H/I:H/PR:N/S:U/UI:R'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-10-29T02:41:54.499Z

Reserved: 2026-10-07T00:00:00.000Z

Link: CVE-2026-106764

cve-icon Vulnrichment

Updated: 2026-10-29T02:41:49.847Z

cve-icon NVD

Status : Deferred

Published: 2026-10-23T15:17:23.203

Modified: 2026-10-29T04:18:22.457

Link: CVE-2026-106764

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-29T05:00:15Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')