Description
Jan from 0.8.5 before 0.8.8 contains a workspace guard bypass vulnerability in the agent-tools gate.rs that allows attackers to write files outside the workspace via dangling symlinks. Attackers supplying a malicious repository can use prompt injection to make the write or edit tools follow symlinks, creating files like ~/.ssh/authorized_keys on the host.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| janhq | jan | 0.8.5 – < 0.8.8 | 0.8.8 |
References
- GitHub Security Advisory (GHSA-7j4g-mj5j-p842) vendor-advisory
- https://github.com/janhq/jan/pull/9424 patch issue-tracking
- https://github.com/janhq/jan/commit/840c33e65182ba9975d32f710c5d111e25444b65 patch
- jan v0.8.8 Release Notes release-notes
- VulnCheck Advisory: Jan 0.8.5 before 0.8.8 Workspace Guard Bypass via Dangling Symlink third-party-advisory