Files
hermes-agent/agent
beardthelion 5aca5406f0 fix(agent): reject subdirectory hint files that resolve outside the tree
The subdirectory-hint loader resolves each visited directory but never the
hint file itself, so a checked-in sub/AGENTS.md symlinked to an out-of-tree
file (~/.aws/credentials, another agent's config) was followed and injected
into the tool result. Resolve each candidate and require its target to stay
inside the working dir and pass the canonical read deny-list - the same
policy @-references already apply - and read the resolved inode so a link
swapped between check and read still lands on the vetted file. In-tree
symlinks keep working.
2026-09-20 10:51:03 -07:00
..
…
…
…