CVE-2026-22218: Chainlit < 2.9.4 Arbitrary File Read via /project/element

Published Jan 19, 2026
·
Updated

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 Software

2 affected components
npm/chainlit<2.9.4
Chainlit Chainlit<2.9.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Chainlit to a version that resolves this vulnerability.

    Fixed in 2.9.4
  2. Compensating control

    Restrict access to the Chainlit endpoints /project/element and /project/file/<chainlitKey> so only trusted users/sessions can reach them (reduce exposure of the arbitrary file read flow).

Event History

Jan 19, 2026
CVE Published
via MITRE·11:14 PM
Data Sourced
via MITRE·11:14 PM
DescriptionWeakness
Jan 20, 2026
Data Sourced
via NVD·12:15 AM
DescriptionSeverityWeaknessAffected Software
News Published
via The Register·02:00 PM
News Published
via The Register·02:03 PM
Jan 21, 2026
News Published
via BleepingComputer·10:37 PM
News Published
via BleepingComputer·10:38 PM
Feb 2, 58063
Event
via FIRST·03:34 PM

Frequently Asked Questions

1

What is the severity of CVE-2026-22218?

CVE-2026-22218 has a high severity level due to its potential for arbitrary file reading by authenticated users.

2

How do I fix CVE-2026-22218?

To fix CVE-2026-22218, upgrade Chainlit to version 2.9.4 or later.

3

Who is affected by CVE-2026-22218?

All users of Chainlit versions prior to 2.9.4 are susceptible to CVE-2026-22218.

4

What is the nature of the vulnerability CVE-2026-22218?

CVE-2026-22218 is an arbitrary file read vulnerability allowing unauthorized access to file contents via manipulated element paths.

5

How can an attacker exploit CVE-2026-22218?

An attacker can exploit CVE-2026-22218 by sending a custom Element with a user-controlled path value during the update flow.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203