CVE-2026-22218 Details
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.
A vulnerability allowing arbitrary file read has been identified in Chainlit versions prior to 2.9.4. This issue arises in the /project/element update flow, where an authenticated client can send a custom Element with a user-controlled path. This action causes the server to copy the referenced file into the attacker's session. The attacker can then use the resulting element identifier (chainlitKey) to retrieve the file contents via the /project/file/<chainlitKey> endpoint, disclosing any file that is readable by the Chainlit service.
Users are advised to update Chainlit to version 2.9.4 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 21, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Chainlit/chainlit/releases/tag/2.9.4 | [email protected] | ProductRelease Notes |
| https://www.vulncheck.com/advisories/chainlit-arbitrary-file-read-via-project-element | [email protected] | Third Party Advisory |
| https://www.zafran.io/resources/chainleak-critical-ai-framework-vulnerabilities-expose-data-enable-cloud-takeover | [email protected] | ExploitMitigationThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| chainlit chainlit | < 2.9.4 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 14, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 2, 2026 | Initial Analysis | [email protected] |
| Jan 20, 2026 | CVE Modified | [email protected] |
| Jan 20, 2026 | New CVE Received | [email protected] |