{"id":"CVE-2026-22218","aliases":["GHSA-gm79-2pvc-wc75","PYSEC-2026-598"],"url":"https://o3.security/vulnerability/CVE-2026-22218","summary":"Chainlit < 2.9.4 Arbitrary File Read via /project/element","details":"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.","published":"2026-01-19T23:14:52.969Z","modified":"2026-11-16T22:55:50.099245928Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"PyPI","name":"chainlit","fixedVersion":"2.9.4"}],"fix":{"url":"https://github.com/Chainlit/chainlit/pull/2737","label":"Chainlit/chainlit#2737"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22218.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22218"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/chainlit-arbitrary-file-read-via-project-element"},{"type":"FIX","url":"https://github.com/Chainlit/chainlit/releases/tag/2.9.4"},{"type":"PACKAGE","url":"https://github.com/Chainlit/chainlit"},{"type":"EVIDENCE","url":"https://www.zafran.io/resources/chainleak-critical-ai-framework-vulnerabilities-expose-data-enable-cloud-takeover"},{"type":"WEB","url":"https://github.com/Chainlit/chainlit/pull/2737"},{"type":"WEB","url":"https://github.com/Chainlit/chainlit/commit/ffc3cce648b343b933e10e85ee5805c7e02ab3bf"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-gm79-2pvc-wc75"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-11-16T22:55:50.099245928Z"}}