You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(security): address review on workspace-boundary enforcement (#169)
- GenerateImageTool: apply the workspace-boundary check to the *input* image
path too, not just the output path. A symlink inside the workspace pointing
outside could otherwise be read and base64-encoded/forwarded upstream.
- BaseTool.resolveIsOutsideWorkspace: wrap getState() in try/catch defaulting
to false, so a provider torn down mid-operation no longer aborts the tool.
- ReadFileTool.requestApproval: read provider state once and pass the flag down
to each per-file boundary check in a batch, instead of a getState() per file.
- pathUtils.isPathOutsideWorkspace: normalize case on macOS/Windows before
comparing, so realpath casing differences don't cause a path inside the
workspace to be reported as outside (false negative). +regression test.
0 commit comments