<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-04T22:13:04.529342+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/cve-2026-49987</id>
    <title>CVE-2026-49987 — Repomix: Command Injection (RCE) via `--remote-branch` Argument Injection</title>
    <updated>2026-10-04T22:13:04.772122+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> yamadashy repomix</p>
<p>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.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-49987"/>
  </entry>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/ghsa-9mm9-rqhj-j5mx</id>
    <title>GHSA-9mm9-rqhj-j5mx — repomix Vulnerable to Command Injection (RCE) via `--remote-branch` Argument Injection</title>
    <updated>2026-10-04T22:13:04.772247+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> npm: repomix</p>
<p>### Vulnerability Metadata</p>
<p>| Field | Detail |
| --- | --- |
| **Affected Component** | `src/core/git/gitCommand.ts` (`execGitShallowClone`) |
| **Impact** | Arbitrary Command Execution / Security Control Bypass |</p>
<p>### Summary</p>
<p>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.</p>
<p>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()`.</p>
<p>### Vulnerable Code Analysis</p>
<p>**File:** `src/core/git/gitCommand.ts`</p>
<p>The `remoteBranch` parameter is appended directly to the arguments array for git subprocesses without the `--` positional delimiter.</p>
<p>**Sink 1 (Lines 118-127):**</p>
<p>```typescript
await deps.execFileAsync(
  'git',
  ['-C', directory, 'fetch', '--depth', '1', 'origin', remoteBranch], // Vulnerable
  gitRemoteOpts,
);</p>
<p>```</p>
<p>**Sink 2 (Lines 148-151):**</p>
<p>```typescript
await deps.execFileAsync('git', ['-C', directory, 'checkout', remoteBranch]); // Vulnerable</p>
<p>```</p>
<p>**Bypassed Security Control (Lines 192-197):**
The application attempts to prevent this exact vulnerability class by blocki…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-9mm9-rqhj-j5mx"/>
  </entry>
</feed>
