Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
yamadashy repomix
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Kazuki Yamada Repomix是Kazuki Yamada个人开发者开源的一款代码仓库打包与整合工具。 Kazuki Yamada Repomix 1.14.1之前版本存在命令注入漏洞,该漏洞源于src/core/git/gitCommand.ts中execGitShallowClone函数将--remote-branch值直接传递给git fetch和git checkout,未对--end-of-options进行验证,允许--upload-pack或其他Git选项注入,绕过validat

AI Predicted 8.6 Difficulty: Easy EPSS 0.70% · P53

Affected Version Matrix 1

VendorProduct Version RangeStatus
yamadashy repomix < 1.14.1 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-49987

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Repomix: Command Injection (RCE) via `--remote-branch` Argument Injection
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
参数注入或修改
Source: CVE Program / CVE List V5
Vulnerability Title
Kazuki Yamada Repomix 命令注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Kazuki Yamada Repomix是Kazuki Yamada个人开发者开源的一款代码仓库打包与整合工具。 Kazuki Yamada Repomix 1.14.1之前版本存在命令注入漏洞,该漏洞源于src/core/git/gitCommand.ts中execGitShallowClone函数将--remote-branch值直接传递给git fetch和git checkout,未对--end-of-options进行验证,允许--upload-pack或其他Git选项注入,绕过validat
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
yamadashy repomix < 1.14.1 -

II. Public POCs for CVE-2026-49987

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-49987

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-49987 (1)

Vendor Advisories for CVE-2026-49987 (1)

Vendor Pages for CVE-2026-49987 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-49987

No comments yet


Leave a comment