Technical impact
The vulnerability is a workspace guard bypass that allows write to files outside the designated workspace by using dangling symlinks. The code in agent-tools gate.rs unintentionally follows symlinks when processing prompt injections. As the attacker can provide a malicious repository, they can cause the write or edit tools to follow these links and create files on the host, for example ~/.ssh/authorized_keys. This gives the attacker the ability to persist access as the owning user, effectively escalating privileges. The weakness maps to CWE‑59.
Affected Systems
Affects Jan 0.8.5 through 0.8.7, the janhq:jan product. All releases in that range are vulnerable, up to but not including 0.8.8, which contains the fix.
Risk and Exploitability
The CVSS score is 5.7, indicating moderate severity. EPSS is not available and the vulnerability is not listed in CISA KEV, meaning no publicly known exploitation at this time. Attackers most likely need to supply a malicious repository and trigger prompt injection to exercise the vulnerable path. The risk is moderate but the potential impact (writing ~/.ssh/authorized_keys) could lead to future unauthorized access, so patching is recommended.