CVE-2026-22218
Chainlit vulnerability
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 products
Chainlit. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Chainlit runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- www.zafran.io/resources/chainleak-critical-ai-framework-vulnerabilities-expose-data-enable · Exploit
- www.vulncheck.com/advisories/chainlit-arbitrary-file-read-via-project-element · Third Party Advisory
- github.com/Chainlit/chainlit/releases/tag/2.9.4
- nvd.nist.gov/vuln/detail/CVE-2026-22218
- github.com/Chainlit/chainlit/pull/2737
- github.com/Chainlit/chainlit/commit/ffc3cce648b343b933e10e85ee5805c7e02ab3bf
- github.com/advisories/GHSA-gm79-2pvc-wc75
- nvd.nist.gov/vuln/detail/CVE-2026-22218
- cve.org/CVERecord?id=CVE-2026-22218
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.