CVE-2026-22218
Chainlit < 2.9.4 Arbitrary File Read via /project/element
- State
- Published
- Severity
- 7.1 High
- Published
- Jan 19, 2026
- Updated
- Jul 14, 2026
- Reserved
- Jan 6, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 7.1 High | 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 | VulnCheck |
Weaknesses
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Products
| Product | Versions |
|---|---|
ChainlitChainlit |
|
References
- https://github.com/Chainlit/chainlit/releases/tag/2.9.4release-notespatch
- https://www.zafran.io/resources/chainleak-critical-ai-framework-vulnerabilities-expose-data-enable-cloud-takeovertechnical-descriptionexploit
- https://www.vulncheck.com/advisories/chainlit-arbitrary-file-read-via-project-elementthird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.