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.
Problem types
Product status
0.2
0.3
0.4
0.5.0
Timeline
| 2026-03-27: | Advisory disclosed |
| 2026-03-27: | VulDB entry created |
| 2026-03-27: | VulDB entry last update |
Credits
Yinci Chen (VulDB User)
References
vuldb.com/vuln/353892 (VDB-353892 | kazuph mcp-docs-rag add_git_repository/add_text_file index.ts cloneRepository os command injection)
vuldb.com/vuln/353892/cti (VDB-353892 | CTI Indicators (IOB, IOC, TTP, IOA))
vuldb.com/submit/779152 (Submit #779152 | kazuph mcp-docs-rag <= 0.5.0 Command Injection)
github.com/kazuph/mcp-docs-rag/issues/7
github.com/...ttachments/files/25822451/mcp-docs-rag_bug.pdf
github.com/kazuph/mcp-docs-rag/