chainlitGHSA-gm79-2pvc-wc75
chainlit : Chainlit allows authenticated arbitrary file reads through custom element updates
Fix: upgrade to 2.9.4 or later
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 versions
| Package | Affected | Fixed in |
|---|---|---|
| chainlit PyPI | < 2.9.4 | 2.9.4 |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-22, CWE-73
- Also known as
- CVE-2026-22218, PYSEC-2026-598
- nvd.nist.gov/vuln/detail/CVE-2026-22218
- github.com/Chainlit/chainlit/pull/2737
- github.com/Chainlit/chainlit/commit/ffc3cce648b343b933e10e85ee5805c7e02ab3bf
- github.com/Chainlit/chainlit
- github.com/Chainlit/chainlit/releases/tag/2.9.4
- github.com/advisories/GHSA-gm79-2pvc-wc75
- www.vulncheck.com/advisories/chainlit-arbitrary-file-read-via-project-element
- www.zafran.io/resources/chainleak-critical-ai-framework-vulnerabilities-expose-data-enable-cloud-takeover