CVE Tools

CVE-2026-22218

Chainlit < 2.9.4 Arbitrary File Read via /project/element

Public exploit available. Not confirmed exploited in the wild yet. Fixed in 2.9.4.

Published Updated Sources: CVE.org, NVD

What to do

Find your product and version, then upgrade to the build on the right.

  • ChainlitAffected: < 2.9.4Upgrade to: 2.9.4Stated by: CVE record

Versions as the sources state them. Full version matrix after sign-in

Steps

Written by AI from the record
  1. Check your Chainlit version and confirm it is below 2.9.4.
  2. If it is below 2.9.4 and you have any users you don’t fully trust, assume they could use a crafted request to read files.
  3. Upgrade Chainlit to 2.9.4 (this is the fixed version).
  4. After upgrading, review access logs for unusual hits to the /project/element and /project/file endpoints by authenticated users.
  5. If you cannot upgrade right away, restrict access to the Chainlit app so only trusted users can reach it (no public access), and rotate any secrets that may have been stored on the server.

What it is

From the CVE record

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.

In plain language

Written by AI from the record

If you use Chainlit version 2.9.4 or older, a logged-in attacker could read any file the Chainlit service can access, which can expose secrets and source code—this is a real worry for businesses that have user accounts or are exposed to untrusted users.

In Chainlit versions prior to 2.9.4, authenticated users can exploit the /project/element flow to trigger an arbitrary file read via a user-controlled path (copying the file into their session, then retrieving it through /project/file/<chainlitKey>).

If you're affected

  • Secret or API key disclosure
  • Configuration file exposure
  • Source code disclosure
  • Account/session takeover risk

Exploitation

Where each signal puts this CVE on the scale from published to confirmed exploited.

EPSS96th
Public exploit
CISA KEV

Not in the catalog. CISA has not confirmed exploitation.

Public exploits

1 source with a proof of concept or module.

Exploit links, PoCs and Metasploit modules after sign-in
EPSS

9.7% chance of exploitation activity in the next 30 days, which ranks it in the 96th percentile of scored CVEs.

Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.

Lifecycle

16 events over 254 days, from the signal feeds we watch.

  1. EPSS band changemoderate → low
  2. EPSS band changemoderate → lowepss band change
  3. EPSS band changelow → moderate
  4. EPSS band changelow → moderate
  5. EPSS band changelow → moderate
  6. EPSS band change0 → moderateepss band change

Affected products

And 1 more affected product. See all after sign-in

Technical detail

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Scored 6.5 by NVD.

How it is reached

  • Attack Vector NetworkExploitable remotely over the network without any special conditions
  • Attack Complexity LowNo special conditions — the attack can be reliably reproduced
  • Privileges Required LowRequires basic user-level privileges
  • User Interaction NoneNo user interaction needed — fully automated exploitation

Scope

  • Scope UnchangedImpact is limited to the vulnerable component itself

Impact if exploited

  • Confidentiality HighTotal information disclosure — all data in the component is compromised
  • Integrity NoneNo integrity impact
  • Availability NoneNo availability impact

Weaknesses

ATT&CK techniques

Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.

Sources

Watch the software you run.

My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.

We'll flag the next CVE, public exploit or patch for Chainlit, not every advisory. This one: public exploit.