提交 #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 月前)
管理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

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!