# CVE-2026-22218: Chainlit < 2.9.4 Arbitrary File Read via /project/element

- Severity: High 7.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 7.29%, higher than 94% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-19T23:14:52.969Z
- Modified: 2026-11-16T22:55:50.099Z
- Also known as: GHSA-gm79-2pvc-wc75, PYSEC-2026-598
- Weaknesses: CWE-22, CWE-73
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- Chainlit Chainlit: before 2.9.4
- chainlit (PyPI): before 2.9.4

## Every score

- VulnCheck: CVSS: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`
- GitHub: CVSS:3.1 6.5 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 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`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://www.zafran.io/resources/chainleak-critical-ai-framework-vulnerabilities-expose-data-enable-cloud-takeover> (exploit, evidence, mitigation, technical-description, third-party-advisory, web)
- <https://github.com/Chainlit/chainlit/releases/tag/2.9.4> (advisory, patch, product, release-notes, web)
- <https://www.vulncheck.com/advisories/chainlit-arbitrary-file-read-via-project-element> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22218> (advisory)
- <https://github.com/Chainlit/chainlit/pull/2737> (web)
- <https://github.com/Chainlit/chainlit/commit/ffc3cce648b343b933e10e85ee5805c7e02ab3bf> (web)
- <https://github.com/Chainlit/chainlit> (package)
- <https://github.com/advisories/GHSA-gm79-2pvc-wc75> (advisory)

## Sources

- CVE List: [CVE-2026-22218](https://www.cve.org/CVERecord?id=CVE-2026-22218), CVE Terms of Use, modified 2026-11-08
- GitHub Advisory Database: [GHSA-gm79-2pvc-wc75](https://github.com/advisories/GHSA-gm79-2pvc-wc75), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2026-22218](https://nvd.nist.gov/vuln/detail/CVE-2026-22218), Public domain, modified 2026-07-14
- PyPA Advisory Database: [PYSEC-2026-598](https://osv.dev/vulnerability/PYSEC-2026-598), CC-BY-4.0, modified 2026-11-16

---

Page: https://cve.day/CVE-2026-22218 · Whole record: https://cve.day/CVE-2026-22218.json · Rebuilt by cve.day 2026-11-25T22:59:12.963Z
