INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2026-22218

chainlit : Chainlit allows authenticated arbitrary file reads through custom element updates

CVE-2026-22218 · 2026-01-20 high

Class
AI Framework and Platform Flaws (filed by a model that read the advisory)
Technique
Path traversal and file access
Affected
chainlit (PyPI)
CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
9.7% chance of exploitation in 30 days

How it works, in short

An authenticated user supplies an arbitrary file path in a custom element update, and the server copies that file into a session for retrieval. (Our summary, written by a model. The source text is below.)

Details

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.

References

Source: GitHub Advisory Database, used under CC BY 4.0.