{"id":"CVE-2026-22218","kind":"vulnerability","aliases":["CVE-2026-22218","GHSA-gm79-2pvc-wc75"],"related":[],"title":"chainlit : Chainlit allows authenticated arbitrary file reads through custom element updates","description":"Chainlit versions prior to 2.9.4 contain an arbitrary file read vulnerability in the /project/element update flow. An authenticated client can send a custom Element with a user-controlled path value, causing the server to copy the referenced file into the attacker’s session. The resulting element identifier (chainlitKey) can then be used to retrieve the file contents via /project/file/<chainlitKey>, allowing disclosure of any file readable by the Chainlit service.","summary":"Chainlit, a Python framework for building chat apps with AI models, lets a logged-in user send a custom element pointing at an arbitrary path on the server. The attacker can then download that file through the element key, exposing any file the Chainlit service can read.","severity":"high","cvss":7.1,"epss":0.09724,"exploited":false,"exploited_at":null,"products":[{"name":"chainlit","fixed":["2.9.4"],"affected":"< 2.9.4","ecosystem":"pypi"},{"name":"chainlit","fixed":["2.9.4"],"affected":"< 2.9.4","ecosystem":"vendor"}],"ecosystems":["pypi","vendor"],"tags":["ai-tooling","chainlit","cwe-22","cwe-73","python","self-hosted"],"not_affected_if":["chainlit-2.9.4-or-later","no-authentication-exposed"],"how_to_check":"- Run `pip show chainlit` and confirm the installed version is below `2.9.4`.\n- Check the lockfile or requirements file for `chainlit` pinned under `2.9.4`.","fix":"- Chainlit: upgrade to `2.9.4`.","status":"open","published_at":"2026-01-20T00:15:48+00:00","first_seen_at":"2026-11-16T22:38:02+00:00","triaged_at":"2026-11-16T22:38:28+00:00","updated_at":"2026-11-16T22:39:16+00:00","category":"ai-tooling","confidence":0.8,"triage":{"at":"2026-11-16T22:38:28Z","model":"claude-haiku-5-5","output":{"fix":"- Chainlit: upgrade to `2.9.4`.","reach":"internet","title":"Chainlit: authenticated users can read any server file via elements","impact":"medium","summary":"Chainlit, a Python framework for building chat apps with AI models, lets a logged-in user send a custom element pointing at an arbitrary path on the server. The attacker can then download that file through the element key, exposing any file the Chainlit service can read.","audience":"businesses","category":"ai-tooling","nicknames":[],"who_cares":["chainlit","python","self-hosted"],"confidence":0.8,"fix_status":"available","needs_auth":"yes","worst_case":"server files readable by the Chainlit process, including secrets","analyst_note":"","how_to_check":"- Run `pip show chainlit` and confirm the installed version is below `2.9.4`.\n- Check the lockfile or requirements file for `chainlit` pinned under `2.9.4`.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["chainlit-2.9.4-or-later","no-authentication-exposed"],"who_is_affected":"Applications built on Chainlit versions before 2.9.4 that require user login are exposed, because the attacker must hold an authenticated session before sending the crafted element update. Any service the Chainlit process can read, including configuration, secrets and source files, is at risk. Deployments on 2.9.4 or later are not affected.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"high"},"cost_usd":0.000732,"input_tokens":4693,"output_tokens":526,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-2026':13A,21A '-22':30B '-22218':14A,22A '-73':32B '/project/element':98C '/project/file':144C '2.9.4':89C '2pvc':18A 'ai':26B,46B 'ai-tool':25B 'allow':3A,145C 'app':44B 'arbitrari':5A,61B,92C 'attack':67B,126C 'authent':4A,102C 'build':42B 'caus':116C 'chainlit':1A,2A,23A,24A,28B,37B,81B,85C,153C 'chainlitkey':133C 'chat':43B 'client':103C 'contain':90C 'content':142C 'control':113C 'copi':120C 'custom':9A,56B,107C 'cve':12A,20A 'cwe':29B,31B 'disclosur':146C 'download':70B 'element':10A,57B,75B,108C,131C 'expos':77B 'file':6A,72B,79B,93C,123C,141C,149C 'flow':100C 'framework':40B 'ghsa':16A 'ghsa-gm79-2pvc-wc75':15A 'gm79':17A 'host':36B 'identifi':132C 'key':76B 'let':48B 'log':51B 'logged-in':50B 'model':47B 'path':62B,114C 'point':58B 'prior':87C 'python':33B,39B 'read':7A,84B,94C 'readabl':150C 'referenc':122C 'result':130C 'retriev':139C 'self':35B 'self-host':34B 'send':54B,105C 'server':65B,118C 'servic':82B,154C 'session':128C 'tool':27B 'updat':11A,99C 'use':137C 'user':53B,112C 'user-control':111C 'valu':115C 'version':86C 'via':143C 'vulner':95C 'wc75':19A","nicknames":[],"mitigations":[],"who_affected":"Applications built on Chainlit versions before 2.9.4 that require user login are exposed, because the attacker must hold an authenticated session before sending the crafted element update. Any service the Chainlit process can read, including configuration, secrets and source files, is at risk. Deployments on 2.9.4 or later are not affected.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":["chainlit"],"ptokens":["chainlit"],"labels":["aitooling","chainlit","cwe22","cwe73","high","pypi","python","selfhosted","vendor"],"campaign_type":null,"search_a":"'-2026':13A,21A '-22218':14A,22A '2pvc':18A 'allow':3A 'arbitrari':5A 'authent':4A 'chainlit':1A,2A,23A,24A 'custom':9A 'cve':12A,20A 'element':10A 'file':6A 'ghsa':16A 'ghsa-gm79-2pvc-wc75':15A 'gm79':17A 'read':7A 'updat':11A 'wc75':19A","search_b":"'-22':30B '-73':32B 'ai':26B,46B 'ai-tool':25B 'app':44B 'arbitrari':61B 'attack':67B 'build':42B 'chainlit':28B,37B,81B 'chat':43B 'custom':56B 'cwe':29B,31B 'download':70B 'element':57B,75B 'expos':77B 'file':72B,79B 'framework':40B 'host':36B 'key':76B 'let':48B 'log':51B 'logged-in':50B 'model':47B 'path':62B 'point':58B 'python':33B,39B 'read':84B 'self':35B 'self-host':34B 'send':54B 'server':65B 'servic':82B 'tool':27B 'user':53B","search_c":"'/project/element':98C '/project/file':144C '2.9.4':89C 'allow':145C 'arbitrari':92C 'attack':126C 'authent':102C 'caus':116C 'chainlit':85C,153C 'chainlitkey':133C 'client':103C 'contain':90C 'content':142C 'control':113C 'copi':120C 'custom':107C 'disclosur':146C 'element':108C,131C 'file':93C,123C,141C,149C 'flow':100C 'identifi':132C 'path':114C 'prior':87C 'read':94C 'readabl':150C 'referenc':122C 'result':130C 'retriev':139C 'send':105C 'server':118C 'servic':154C 'session':128C 'updat':99C 'use':137C 'user':112C 'user-control':111C 'valu':115C 'version':86C 'via':143C 'vulner':95C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-01-20T00:15:48+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-gm79-2pvc-wc75","url":"https://github.com/advisories/GHSA-gm79-2pvc-wc75","severity":"high","published_at":"2026-01-20T00:30:28+00:00","modified_at":"2026-11-16T22:36:32+00:00","first_seen_at":"2026-11-16T22:38:02+00:00","fetched_at":"2026-11-17T02:08:14+00:00","note":null},{"source":"nvd","external_id":"CVE-2026-22218","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22218","severity":null,"published_at":"2026-01-20T00:15:48+00:00","modified_at":"2026-07-14T16:16:49+00:00","first_seen_at":"2026-11-16T22:39:16+00:00","fetched_at":"2026-11-16T22:39:16+00:00","note":null}],"documents":[{"id":172795,"url":"https://github.com/Chainlit/chainlit/releases/tag/2.9.4","title":"Release: github.com","kind":"release","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release: github.com"},{"id":172796,"url":"https://github.com/Chainlit/chainlit/pull/2737","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":172797,"url":"https://github.com/Chainlit/chainlit/commit/ffc3cce648b343b933e10e85ee5805c7e02ab3bf","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":172970,"url":"https://www.vulncheck.com/advisories/chainlit-arbitrary-file-read-via-project-element","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"},{"id":172971,"url":"https://www.zafran.io/resources/chainleak-critical-ai-framework-vulnerabilities-expose-data-enable-cloud-takeover","title":"Vendor mitigation: www.zafran.io","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"mitigation","confidence":null,"note":"Vendor mitigation: www.zafran.io"}],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.09724,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-22218"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}