CVE-2026-5007 kazuph mcp-docs-rag add_git_repository/add_text_file index.ts cloneRepository os command injection

Medium 4.8 Published Updated

Local attackers can execute arbitrary OS commands via the cloneRepository function in the kazuph mcp-docs-rag library.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-5007?

CVE-2026-5007 is a medium-severity command injection vulnerability in kazuph mcp-docs-rag, published on 28 Mar 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A vulnerability was identified in kazuph mcp-docs-rag up to 0.5.0. Affected is the function cloneRepository of the file src/index.ts of the component add_git_repository/add_text_file. The manipulation leads to os command injection. The attack needs to be performed locally. The exploit is publicly available and might be used. The project was informed of the problem early through an issue report but has not responded yet.

Weakness: CWE-78, CWE-77

Which versions are affected by CVE-2026-5007?

How do I fix CVE-2026-5007?

No fix has been published for CVE-2026-5007 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-5007 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-5007 exists.

Sources

Also known as GHSA-56ph-gvwc-wqxr.

Is CVE-2026-5007 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free