CVE-2026-22218: ChainLeak: Arbitrary File Read in Chainlit
- Vendor
- Chainlit
Chainlit versions before 2.9.4 contain an arbitrary file read vulnerability in the element update flow. An authenticated client can submit a custom Element with an attacker-controlled path property, causing the server to copy a referenced file into the attacker's session without adequate validation. The resulting chainlitKey identifier allows retrieval of the copied contents, exposing any file readable by the Chainlit service. This vulnerability and CVE-2026-22219 are collectively known as ChainLeak.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Exploitation compromises the confidentiality of files accessible to the Chainlit service, potentially exposing source code, configuration data, databases, process environment variables, API keys, cloud credentials, and authentication signing secrets. In multi-tenant deployments using a readable LangChain cache database, attackers may obtain other users' prompts and responses. Stolen signing secrets combined with user identifiers can enable authentication-token forgery and account takeover; exposed cloud or database credentials may enable further access and lateral movement, subject to their permissions.
Mitigation
If you can’t patch tonight, do this now.
Until upgrading, restrict access to the affected element update and file retrieval endpoints to trusted authenticated users. Minimize filesystem read permissions for the Chainlit service account and isolate the service in a container or virtual machine with a tightly scoped filesystem and mandatory access controls. Researcher-provided Snort signatures and Cloudflare WAF rules are also available as temporary protective measures.
Remediation
Patch, then assume compromise.
Upgrade the PyPI chainlit package to version 2.9.4 or later, which fixes this vulnerability. Inventory deployed Chainlit instances and update those running affected versions.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-22218 exploited in the wild?
- As of Nov 17, 2026, Mallory has no reports of CVE-2026-22218 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-22218?
- Yes. As of Nov 17, 2026, Mallory has reports of a public exploit for CVE-2026-22218.
- Is there a patch for CVE-2026-22218?
- Upgrade the PyPI chainlit package to version 2.9.4 or later, which fixes this vulnerability. Inventory deployed Chainlit instances and update those running affected versions.
- What products are affected by CVE-2026-22218?
- Chainlit.
- How severe is CVE-2026-22218?
- CVE-2026-22218 has a CVSS v4 score of 7.1 (High) and an EPSS score of 9.7% (96th percentile) as of Nov 17, 2026.
Recent activity
24 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.