CVE-2026-22218: Chainlit - Arbitrary File Read
- Cve: CVE-2026-22218
- Name: Chainlit - Arbitrary File Read
- 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.
- Impact: Authenticated attackers can read arbitrary files on the server, potentially exposing sensitive information.
- Remediation: Update to version 2.9.4 or later.
- Vulnerability type: path_traversal
- Vulnerability impact: file_system_read, information_disclosure
- Requirement type: logged_in
- Requirements: Attacker must be authenticated
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.09724
- Epss percentile: 0.95593
- Assignee: [email protected]
- Published at: 2026-01-20T00:15:48Z
- Age in days: 308
- Modified at: 2026-07-14T16:16:49Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-22218
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://www.zafran.io/resources/chainleak-critical-ai-framework-vulnerabilities-expose-data-enable-cloud-takeover | nvd | 2026-01-20 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://www.zafran.io/resources/chainleak-critical-ai-framework-vulnerabilities-expose-data-enable-cloud-takeover | Exploit, Mitigation, Third Party Advisory |
| https://www.vulncheck.com/advisories/chainlit-arbitrary-file-read-via-project-element | Third Party Advisory |
| https://github.com/Chainlit/chainlit/releases/tag/2.9.4 | Product, Release Notes |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| chainlit:chainlit | < 2.9.4 | no | nvd | /v1/products/chainlit/chainlit |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| Chainlit/chainlit | commit, package, pull, releases | yes | /v1/repositories/Chainlit/chainlit |
Index
- Repositories: 47
- Repositories high signal: 13
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-01-20
- Remote: yes
- Authentication required: yes
- Exposed hosts: 856
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports