Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
HighPublic exploit

Arbitrary File Read in Chainlit /project/element update flow (pre-2.9.4)

IdentifiersCVE-2026-22218CWE-22· Improper Limitation of a Pathname…Also known aschainleak

Chainlit versions prior to 2.9.4 contain an arbitrary file read issue in the /project/element element-update flow. An authenticated client can submit a crafted custom Element whose path property is attacker-controlled. Due to insufficient validation of this path, the server will copy the referenced file into the attacker’s session context and return an element identifier (chainlitKey). The attacker can then retrieve the copied file contents via the /project/file/<chainlitKey> endpoint, disclosing any file readable by the Chainlit service account (e.g., configuration, source code, environment variable files such as /proc/self/environ, and local databases such as chainlit/.langchain.db in certain deployments).

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Information disclosure of arbitrary local files readable by the Chainlit service. This can expose secrets (API keys, database credentials, authentication signing secrets), enable source code theft, and in some configurations facilitate account takeover (e.g., token forgery using leaked auth secrets) and cross-tenant data leakage (e.g., reading chainlit/.langchain.db when using LangChain cache in multi-tenant deployments).

Mitigation

If you can’t patch tonight, do this now.

If immediate upgrade is not possible: restrict access to the affected endpoints (/project/element and /project/file/*) to only trusted authenticated users; apply least-privilege to the Chainlit runtime identity to minimize filesystem read access; and isolate the service (container/VM) with a tightly scoped filesystem and MAC controls to reduce the blast radius of arbitrary file reads.

Remediation

Patch, then assume compromise.

Upgrade Chainlit to 2.9.4 or later (2.9.4 released 2025-12-24) to address the vulnerable element handling behavior.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

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.

VendorProductType
ChainlitChainlitapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity13

Community discussion across Reddit, Mastodon, and other social sources.