CVE-2026-22218
HIGH 7.1CVSS 4.0chainlit : Chainlit allows authenticated arbitrary file reads through custom element updates
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.
- Published
- 20 Jan 2026
- Last modified
- 16 Nov 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Analyzed
- Weakness
- CWE-22CWE-73
- Also known as
- GHSA-gm79-2pvc-wc75PYSEC-2026-598
- Sources
- NVDJSONOSV GHSA-gm79-2pvc-wc75JSONOSV PYSEC-2026-598JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | HIGH 7.1 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | chainlit | chainlitcpe:2.3:a:chainlit:chainlit:*:*:*:*:*:*:*:* |
< 2.9.4 | 2.9.4 |
| OSV | PyPI | chainlit | < 2.9.4 | 2.9.4 |
References
- https://github.com/Chainlit/chainlit/releases/tag/2.9.4 · Product, Release Notes, WEB, ADVISORY
- https://www.vulncheck.com/advisories/chainlit-arbitrary-file-read-via-project-element · Third Party Advisory, WEB, ADVISORY
- https://www.zafran.io/resources/chainleak-critical-ai-framework-vulnerabilities-expose-data-enable-cloud-takeover · Exploit, Mitigation, Third Party Advisory, WEB, EVIDENCE
- 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
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 20 Jan 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 20 Jan 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 20 Jan 2026)