{"id":"CVE-2026-22218","published":"2026-01-19T23:14:52Z","modified":"2026-11-08T14:01:12Z","title":"Chainlit < 2.9.4 Arbitrary File Read via /project/element","vendor":"Chainlit","product":"Chainlit","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00743,"percentile":0.50769,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/Chainlit/chainlit/releases/tag/2.9.4","tags":["release-notes","patch"]},{"url":"https://www.zafran.io/resources/chainleak-critical-ai-framework-vulnerabilities-expose-data-enable-cloud-takeover","tags":["technical-description","exploit"]},{"url":"https://www.vulncheck.com/advisories/chainlit-arbitrary-file-read-via-project-element","tags":["third-party-advisory"]}],"priority":{"score":20.1,"factors":[{"name":"EPSS percentile","points":10.15},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"chainlit","affectedVersions":[{"vendor":"Chainlit","product":"Chainlit","versions":["< 2.9.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-01-21T19:37:14.195072Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"chainlit","vulnerableRanges":["<2.9.4"],"patched":["2.9.4"],"from":["GHSA-gm79-2pvc-wc75","PYSEC-2026-598"],"provenance":"source"}],"summary":{"text":"The Chainlit web framework, in versions prior to 2.9.4, contains an arbitrary file read flaw in the /project/element update flow, where a user-controlled path can cause the server to copy any file it can read into the attacker's session. An authenticated remote attacker with no user interaction or special configuration required can send a crafted Element request, then retrieve the copied file's contents via the returned chainlitKey at /project/file/<chainlitKey>, disclosing any file readable by the Chainlit service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T04:03:29Z"},"euvd":{"id":"EUVD-2026-3345","exploited":false,"provenance":"source"},"exploitRefs":["https://www.zafran.io/resources/chainleak-critical-ai-framework-vulnerabilities-expose-data-enable-cloud-takeover"],"lineage":{"packageHistory":[{"cve":"CVE-2025-68492","published":"2026-01-14","fixed":"2.8.5","kev":false,"link":{"from":"CVE-2025-68492","to":"CVE-2026-22218","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:chainlit","fromFixed":"2.8.5","toFixed":"2.9.4","daysApart":5}]}},{"cve":"CVE-2026-22218","published":"2026-01-19","fixed":"2.9.4","kev":false},{"cve":"CVE-2026-22219","published":"2026-01-19","fixed":"2.9.4","kev":false},{"cve":"CVE-2026-56104","published":"2026-06-22","fixed":"2.10.1","kev":false},{"cve":"CVE-2026-120492","published":"2026-11-02","fixed":"2.12.0","kev":false}],"package":"PyPI:chainlit"}}