CVE-2026-22218: chainlit : Chainlit allows authenticated arbitrary file reads through custom element updates
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.
Published Jan 20, 2026 · Updated Nov 16, 2026
Affected packages
chainlit
- Ecosystem
- PyPI
- Affected
- < 2.9.4
- Fixed in
- 2.9.4
- Check
pip show chainlit
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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/, allowing disclosure of any file readable by the Chainlit service.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-22218
- https://github.com/Chainlit/chainlit/releases/tag/2.9.4
- https://www.vulncheck.com/advisories/chainlit-arbitrary-file-read-via-project-element
- https://www.zafran.io/resources/chainleak-critical-ai-framework-vulnerabilities-expose-data-enable-cloud-takeover
- https://github.com/Chainlit/chainlit/pull/2737
- https://github.com/Chainlit/chainlit/commit/ffc3cce648b343b933e10e85ee5805c7e02ab3bf
- https://github.com/advisories/GHSA-gm79-2pvc-wc75
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Chainlit vulnerabilities
All Chainlit entriesCVE-2026-45018
Chainlit has command injection via MCP stdio transport that allows unauthenticated remote code execution
critical9.8Aug 25, 2026CVE-2026-45019
Chainlist has SSRF via MCP SSE and streamable-http transports that allows unauthenticated internal network access
high7.2Aug 25, 2026CVE-2026-56104
Chainlit contains a session hijacking vulnerability
critical7.4Jun 22, 2026CVE-2026-22219
Chainlit contain a server-side request forgery (SSRF) vulnerability
high7.7Jan 20, 2026CVE-2025-68492
Chainlit contains an authorization bypass vulnerability
low4.2Jan 14, 2026
