{"id":"CVE-2026-122235","kind":"vulnerability","aliases":["CVE-2026-122235"],"related":[],"title":"Jan: agent write tool follows dangling symlinks, writing files outside workspace","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.","summary":"Jan, an AI app, has a flaw in its agent tools where the write and edit tools follow dangling symlinks and write files outside the project workspace. A malicious repository plus prompt injection can make the agent create files such as ~/.ssh/authorized_keys on the host.","severity":"medium","cvss":5.7,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["ai-agents","ai-tooling","desktop","jan","local-llm"],"not_affected_if":["no-agent-file-tools","trusted-repos-only","version-0.8.8-or-later"],"how_to_check":"- Check the installed Jan version and whether it is within the affected range (from 0.8.5 before 0.8.8), for example in the app's About screen or package manager listing\n- Review whether Jan's agent tools were used on untrusted repositories","fix":"- Move Jan to `0.8.8` or later","status":"open","published_at":"2026-11-04T21:18:11+00:00","first_seen_at":"2026-11-04T21:49:21+00:00","triaged_at":"2026-11-04T21:51:22+00:00","updated_at":"2026-11-04T21:51:22+00:00","category":"ai-tooling","confidence":0.7,"triage":{"at":"2026-11-04T21:51:22Z","model":"claude-haiku-5-5","output":{"fix":"- Move Jan to `0.8.8` or later","reach":"local","title":"Jan: agent write tool follows dangling symlinks, writing files outside workspace","impact":"high","summary":"Jan, an AI app, has a flaw in its agent tools where the write and edit tools follow dangling symlinks and write files outside the project workspace. A malicious repository plus prompt injection can make the agent create files such as ~/.ssh/authorized_keys on the host.","audience":"everyone","category":"ai-tooling","nicknames":[],"who_cares":["jan","ai-agents","desktop","local-llm"],"confidence":0.7,"fix_status":"available","needs_auth":"no","worst_case":"Attacker writes arbitrary files on the host, such as SSH authorized keys.","analyst_note":"","how_to_check":"- Check the installed Jan version and whether it is within the affected range (from 0.8.5 before 0.8.8), for example in the app's About screen or package manager listing\n- Review whether Jan's agent tools were used on untrusted repositories","plain_action":"Update the Jan app to version 0.8.8 or later.","needs_analyst":false,"not_affected_if":["version-0.8.8-or-later","no-agent-file-tools","trusted-repos-only"],"who_is_affected":"Users running Jan from 0.8.5 before 0.8.8 who let its agent write or edit files in a repository they did not fully trust. Exposure depends on the agent tools being used with untrusted content; people who only use Jan for chat without agent file tools are less exposed.","user_interaction":"yes","needs_special_setup":"unknown","severity_if_unknown":"medium"},"cost_usd":0.000711,"input_tokens":4234,"output_tokens":575,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-122235':14A,17A '-2026':13A,16A '/.ssh/authorized_keys':70B,124C '0.8.5':76C '0.8.8':78C 'agent':2A,20B,38B,65B,88C 'agent-tool':87C 'ai':19B,22B,31B 'ai-ag':18B 'ai-tool':21B 'allow':92C 'app':32B 'attack':93C,103C 'bypass':83C 'contain':79C 'creat':66B,121C 'cve':12A,15A 'dangl':6A,47B,101C 'desktop':24B 'edit':44B,117C 'file':9A,51B,67B,96C,122C 'flaw':35B 'follow':5A,46B,119C 'gate.rs':90C 'guard':82C 'host':73B,127C 'inject':61B,111C 'jan':1A,25B,29B,74C 'like':123C 'llm':28B 'local':27B 'local-llm':26B 'make':63B,113C 'malici':57B,106C 'outsid':10A,52B,97C 'plus':59B 'project':54B 'prompt':60B,110C 'repositori':58B,107C 'suppli':104C 'symlink':7A,48B,102C,120C 'tool':4A,23B,39B,45B,89C,118C 'use':109C 'via':100C 'vulner':84C 'workspac':11A,55B,81C,99C 'write':3A,8A,42B,50B,95C,115C","nicknames":[],"mitigations":[],"who_affected":"Users running Jan from 0.8.5 before 0.8.8 who let its agent write or edit files in a repository they did not fully trust. Exposure depends on the agent tools being used with untrusted content; people who only use Jan for chat without agent file tools are less exposed.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"everyone","plain_action":"Update the Jan app to version 0.8.8 or later.","pkeys":[],"ptokens":[],"labels":["aiagents","aitooling","desktop","jan","localllm","medium"],"campaign_type":null,"first_public_at":"2026-10-29T10:44:47+00:00","kev":null,"cvss_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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"disclosure@vulncheck.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-122235","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-122235","severity":null,"published_at":"2026-11-04T21:18:11+00:00","modified_at":"2026-11-04T21:18:11+00:00","first_seen_at":"2026-11-04T21:49:21+00:00","fetched_at":"2026-11-04T21:49:21+00:00","note":null}],"documents":[{"id":70703,"url":"https://github.com/janhq/jan/commit/840c33e65182ba9975d32f710c5d111e25444b65","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":70704,"url":"https://github.com/janhq/jan/releases/tag/v0.8.8","title":"Release notes: github.com","kind":"release","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release notes: github.com"},{"id":70705,"url":"https://github.com/janhq/jan/security/advisories/GHSA-7j4g-mj5j-p842","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":"2026-10-29T10:44:47+00:00","relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"},{"id":70706,"url":"https://www.vulncheck.com/advisories/jan-0.8.5-before-0.8.8-workspace-guard-bypass-via-dangling-symlink","title":"Third-party advisory: www.vulncheck.com","kind":"advisory","source":"nvd","publisher":"research","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Third-party advisory: www.vulncheck.com"}],"exploit_sources":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}