Skip to main content
← All vulnerabilities
CVE-2026-49987GHSA-9MM9-RQHJ-J5MX

Repomix: Command Injection (RCE) via `--remote-branch` Argument Injection

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.14.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • yamadashy repomix

    fixed in 1.14.1

  • repomixnpm

    fixed in 1.14.1

References 3

GitHub · yamadashy/repomix