CVE-2026-22218

GHSA-gm79-2pvc-wc75 · PYSEC-2026-598 · published 19 Jan 2026 · updated 16 Nov 2026

Chainlit < 2.9.4 Arbitrary File Read via /project/element

8.1HighCVSS 7.1EPSS 10%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 10%. Fixed in 2.9.4 and chainlit 2.9.4.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Chainlit<2.9.42.9.4
pypi: chainlit<2.9.42.9.4

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in chainlit (PyPI), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-22218 severity on Zeptric[![CVE-2026-22218](https://zeptric.io/badge/cve/CVE-2026-22218.svg)](https://zeptric.io/cve/CVE-2026-22218)