<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://vulnerability.circl.lu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Tue, 06 Oct 2026 00:24:53 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-49987 — Repomix: Command Injection (RCE) via `--remote-branch` Argument Injection</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-49987</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; yamadashy repomix&lt;/p&gt;
&lt;p&gt;Repomix is a tool that packs repositories into AI-friendly files. Prior to 1.14.1, src/core/git/gitCommand.ts execGitShallowClone passes the --remote-branch value directly to git fetch and git checkout without validation or --end-of-options, allowing --upload-pack or other Git option injection that bypasses validateGitUrl() dangerous parameter checks and can execute commands through local or SSH-style transports. This issue is fixed in version 1.14.1.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; yamadashy repomix&lt;/p&gt;
&lt;p&gt;Repomix is a tool that packs repositories into AI-friendly files. Prior to 1.14.1, src/core/git/gitCommand.ts execGitShallowClone passes the --remote-branch value directly to git fetch and git checkout without validation or --end-of-options, allowing --upload-pack or other Git option injection that bypasses validateGitUrl() dangerous parameter checks and can execute commands through local or SSH-style transports. This issue is fixed in version 1.14.1.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-49987</guid>
    </item>
    <item>
      <title>GHSA-9mm9-rqhj-j5mx — repomix Vulnerable to Command Injection (RCE) via `--remote-branch` Argument Injection</title>
      <link>https://vulnerability.circl.lu/vuln/ghsa-9mm9-rqhj-j5mx</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: repomix&lt;/p&gt;
&lt;p&gt;### Vulnerability Metadata&lt;/p&gt;
&lt;p&gt;| Field | Detail |
| --- | --- |
| **Affected Component** | `src/core/git/gitCommand.ts` (`execGitShallowClone`) |
| **Impact** | Arbitrary Command Execution / Security Control Bypass |&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;The `--remote-branch` CLI option in `repomix` is vulnerable to argument injection. User-supplied input is passed directly to `git fetch` and `git checkout` subprocesses via `child_process.execFileAsync` without sanitization, `--` delimiters, or validation.&lt;/p&gt;
&lt;p&gt;An attacker can inject arbitrary git command-line options. By injecting the `--upload-pack` option and specifying an SSH (`git@...`) or local (`file://`) remote URL, an attacker achieves arbitrary command execution with the privileges of the user running `repomix`. This bypasses the existing `dangerousParams` blocklist implemented in `validateGitUrl()`.&lt;/p&gt;
&lt;p&gt;### Vulnerable Code Analysis&lt;/p&gt;
&lt;p&gt;**File:** `src/core/git/gitCommand.ts`&lt;/p&gt;
&lt;p&gt;The `remoteBranch` parameter is appended directly to the arguments array for git subprocesses without the `--` positional delimiter.&lt;/p&gt;
&lt;p&gt;**Sink 1 (Lines 118-127):**&lt;/p&gt;
&lt;p&gt;```typescript
await deps.execFileAsync(
  &amp;#39;git&amp;#39;,
  [&amp;#39;-C&amp;#39;, directory, &amp;#39;fetch&amp;#39;, &amp;#39;--depth&amp;#39;, &amp;#39;1&amp;#39;, &amp;#39;origin&amp;#39;, remoteBranch], // Vulnerable
  gitRemoteOpts,
);&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;
&lt;p&gt;**Sink 2 (Lines 148-151):**&lt;/p&gt;
&lt;p&gt;```typescript
await deps.execFileAsync(&amp;#39;git&amp;#39;, [&amp;#39;-C&amp;#39;, directory, &amp;#39;checkout&amp;#39;, remoteBranch]); // Vulnerable&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;
&lt;p&gt;**Bypassed Security Control (Lines 192-197):**
The application attempts to prevent this exact vulnerability class by blocki…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: repomix&lt;/p&gt;
&lt;p&gt;### Vulnerability Metadata&lt;/p&gt;
&lt;p&gt;| Field | Detail |
| --- | --- |
| **Affected Component** | `src/core/git/gitCommand.ts` (`execGitShallowClone`) |
| **Impact** | Arbitrary Command Execution / Security Control Bypass |&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;The `--remote-branch` CLI option in `repomix` is vulnerable to argument injection. User-supplied input is passed directly to `git fetch` and `git checkout` subprocesses via `child_process.execFileAsync` without sanitization, `--` delimiters, or validation.&lt;/p&gt;
&lt;p&gt;An attacker can inject arbitrary git command-line options. By injecting the `--upload-pack` option and specifying an SSH (`git@...`) or local (`file://`) remote URL, an attacker achieves arbitrary command execution with the privileges of the user running `repomix`. This bypasses the existing `dangerousParams` blocklist implemented in `validateGitUrl()`.&lt;/p&gt;
&lt;p&gt;### Vulnerable Code Analysis&lt;/p&gt;
&lt;p&gt;**File:** `src/core/git/gitCommand.ts`&lt;/p&gt;
&lt;p&gt;The `remoteBranch` parameter is appended directly to the arguments array for git subprocesses without the `--` positional delimiter.&lt;/p&gt;
&lt;p&gt;**Sink 1 (Lines 118-127):**&lt;/p&gt;
&lt;p&gt;```typescript
await deps.execFileAsync(
  &amp;#39;git&amp;#39;,
  [&amp;#39;-C&amp;#39;, directory, &amp;#39;fetch&amp;#39;, &amp;#39;--depth&amp;#39;, &amp;#39;1&amp;#39;, &amp;#39;origin&amp;#39;, remoteBranch], // Vulnerable
  gitRemoteOpts,
);&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;
&lt;p&gt;**Sink 2 (Lines 148-151):**&lt;/p&gt;
&lt;p&gt;```typescript
await deps.execFileAsync(&amp;#39;git&amp;#39;, [&amp;#39;-C&amp;#39;, directory, &amp;#39;checkout&amp;#39;, remoteBranch]); // Vulnerable&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;
&lt;p&gt;**Bypassed Security Control (Lines 192-197):**
The application attempts to prevent this exact vulnerability class by blocki…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/ghsa-9mm9-rqhj-j5mx</guid>
    </item>
  </channel>
</rss>
