Description
knowns through 0.33.0 fails to confine the path argument of the code.find MCP tool to the project root, allowing AI agent sessions to read source files anywhere on the host. Attackers can supply absolute paths or relative traversal sequences to the path argument and retrieve full file contents from outside the intended project directory.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| knowns-dev | knowns | ≤ 0.33.0 | — |
References
- GitHub Security Advisory (GHSA-5cj9-fcqq-g2h7) vendor-advisory
- https://github.com/knowns-dev/knowns/blob/v0.33.0/internal/mcp/handlers/code.go#L873-L902 technical-description
- https://github.com/knowns-dev/knowns/blob/v0.33.0/internal/mcp/handlers/code.go#L1293-L1354 technical-description
- VulnCheck Advisory: knowns through 0.33.0 Path Traversal via code.find MCP tool third-party-advisory