提出 #807751: 54yyyu code-mcp 4cfc4643541a110c906d93635b391bf7e357f4a8 Path Traversal情報

タイトル54yyyu code-mcp 4cfc4643541a110c906d93635b391bf7e357f4a8 Path Traversal
説明The server attempts to restrict file access to PROJECT_ROOT using is_safe_path, but relies on Path.absolute() parent membership checks. Because absolute() does not canonicalize .., crafted paths such as PROJECT_ROOT/../outside.txt can pass the parent check while resolving outside workspace boundaries in downstream file operations. This may enable out-of-workspace read/write access through MCP file tools.
ソース⚠️ https://github.com/54yyyu/code-mcp/issues/4
ユーザー
 CPT_Penner (UID 97246)
送信2026年04月18日 20:28 (2 月 ago)
モデレーション2026年05月04日 23:24 (16 days later)
ステータス承諾済み
VulDBエントリ361071 [54yyyu code-mcp 迄 4cfc4643541a110c906d93635b391bf7e357f4a8 MCP File src/code_mcp/server.py is_safe_path ディレクトリトラバーサル]
ポイント20

Want to stay up to date on a daily basis?

Enable the mail alert feature now!