A security fix: symbolic links inside a workspace can no longer be used to read or overwrite files outside it. Symlinked notes are skipped when the workspace loads, and creating or writing a note whose file or folder is a symlink now fails in the CLI and the MCP server. Thanks @pzr21 for reporting the issue.
iwe
Changed
- Symlinked notes are no longer loaded and notes can't be written through a symlinked file or folder (previously a symlink could read or overwrite files outside the workspace)
newfails when the key's file is a symlink or sits in a symlinked folder, whatever--if-existssays (previously it reported the note as existing, skipped it or added a suffix)
iwes
Changed
- Symlinked notes are no longer loaded or reloaded from disk (previously a symlink could expose files outside the workspace)
iwec
Changed
- Symlinked notes are no longer loaded and tools refuse to write through a symlinked file or folder (previously a symlink could read or overwrite files outside the workspace)
iwe_createfails when the key's file is a symlink or sits in a symlinked folder, including withif_exists: "skip"(previously it skipped the note or wrote through the link)
Library crates (liwe, diwe)
liwe
Changed
walk_md_pathsskips symlinked files (previously the file a symlink points to was loaded)
diwe
Added
path_crosses_symlinkto check whether a path inside the workspace goes through a symlink
Changed
workspace_document_pathrefuses paths that go through a symlink below the workspace root (previously it returned them)