Chainlit · Chainlit · CVE-2026-22218
**Name of the Vulnerable Software and Affected Versions**
Chainlit versions prior to 2.9.4
**Description**
Chainlit versions prior to 2.9.4 have an arbitrary file read issue in the /project/element update process. An authenticated client can manipulate a custom Element with a user-controlled path, leading the server to copy the specified file into the attacker’s session. The resulting element identifier (`chainlitKey`) can then be used to retrieve the file contents through the `/project/file/<chainlitKey>` API endpoint, potentially exposing any file accessible by the Chainlit service. This allows unauthorized disclosure of sensitive information like configuration files, databases, or source code.
**Recommendations**
Versions prior to 2.9.4 should be updated to version 2.9.4 or later.