7.1high
Chainlit < 2.9.4 Arbitrary File Read via /project/element
- Severity
- 7.1high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 7.29% (higher than 94% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-gm79-2pvc-wc75PYSEC-2026-598
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
| Product or package | Versions | Reported by |
|---|---|---|
| Chainlit Chainlit | before 2.9.4 | CVE List, NVD |
| chainlit (PyPI) | before 2.9.4 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| VulnCheck | 7.1high 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 |
| GitHub | 6.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| GitHub | high 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 | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| PyPA Advisory Database | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Classification
What each source says
CVE List
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.
NVD (es)
Las versiones de Chainlit anteriores a la 2.9.4 contienen una vulnerabilidad de lectura arbitraria de archivos en el flujo de actualización de /project/element. Un cliente autenticado puede enviar un Element personalizado con un valor de ruta controlado por el usuario, haciendo que el servidor copie el archivo referenciado en la sesión del atacante. El identificador de elemento resultante (chainlitKey) puede usarse entonces para recuperar el contenido del archivo a través de /project/file/, permitiendo la divulgación de cualquier archivo legible por el servicio Chainlit.
References
| https://github.com/Chainlit/chainlit/releases/tag/2.9.4 | advisory, patch, product, release-notes, web | |
| https://www.zafran.io/resources/chainleak-critical-ai-framework-vulnerabilities-expose-data-enable-cloud-takeover | evidence, exploit, mitigation, technical-description, third-party-advisory, 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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-22218 changed 2026-11-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-gm79-2pvc-wc75 changed 2026-11-16 | CC-BY-4.0 |
| NVD | CVE-2026-22218 changed 2026-07-14 | Public domain |
| PyPA Advisory Database | PYSEC-2026-598 changed 2026-11-16 | CC-BY-4.0 |