What’s Vulnerable › Vulnerabilities
CVE-2026-22218: Chainlit < 2.9.4 Arbitrary File Read via /project/element
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 9.7% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-01-20 · updated 2026-07-14
- Weakness: CWE-22
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.
Affected products
- chainlit: before 2.9.4 — fixed in 2.9.4
How to fix
Upgrade to a fixed version: chainlit 2.9.4. Check the vendor advisory for mitigations.
References
- 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
Get alerted when CVE-2026-22218 or the next vulnerability affects your stack