CVE-2026-122235

Jan 0.8.5 before 0.8.8 Workspace Guard Bypass via Dangling Symlink

Published Nov 4, 2026 CVSS 4.0 · 5.7 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Jan to version 0.8.8 or newer, which removes the dangling symlink bug in agent‑tools gate.rs.
  • Reject or quarantine any repositories that contain malicious content or attempt to create dangling symlinks before processing commands.
  • Configure the environment to limit write permissions for the agent or run the service under a non‑privileged user to mitigate potential persistence.

Generated by OpenCVE AI on November 4, 2026 at 22:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Janhq
Janhq jan
Vendors & Products Janhq
Janhq jan
Type Values Removed Values Added
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.
Title Jan 0.8.5 before 0.8.8 Workspace Guard Bypass via Dangling Symlink
Weaknesses CWE-59
References
Metrics cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N'}

cvssV4_0

{'score': 5.7, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 9, 2026, 4:57 PM
Reserved
Nov 4, 2026, 8:51 PM
Status
Deferred
Published
Nov 4, 2026, 9:18 PM
Modified
Nov 12, 2026, 9:36 PM