CVE-2026-22219: Chainlit contain a server-side request forgery (SSRF) vulnerability
Chainlit before 2.9.4 has a server-side request forgery flaw in the `/project/element` update flow when it uses the SQLAlchemy data layer. A logged-in user can make the server fetch any URL, including internal services and cloud metadata endpoints, and have the response saved to the configured storage. Upgrade to Chainlit 2.9.4.
Published Jan 20, 2026 · Updated Feb 2, 2026 · Analysis Nov 1, 2026
What an attacker can do
When the SQLAlchemy data layer creates an Element, it takes the user-supplied url value and fetches it with an outbound HTTP GET. Nothing restricts the destination. An authenticated client can therefore point the server at internal addresses or at a cloud metadata service. The server stores the response through the configured storage provider, so the attacker can read the data back, which makes this more than a blind SSRF.
On a cloud host the likely target is the instance metadata endpoint, which can return temporary credentials. Internal admin panels and databases with HTTP interfaces are other targets. The attacker needs a valid login, but Chainlit apps often allow open sign-up or a shared password. The CVSS 4.0 score is 8.3 with high confidentiality impact on the vulnerable system and the subsequent system. Deployments on other data layers are not described as affected.
Who is affected
The chainlit pip package below 2.9.4, but only when the app is configured with the SQLAlchemy data layer backend. Check your version and your data layer setup:
pip show chainlitLook in your app code for SQLAlchemyDataLayer or a database-backed @cl.data_layer function to see whether you use the affected backend.
chainlit
- Ecosystem
- PyPI
- Affected
- < 2.9.4
- Fixed in
- 2.9.4
- Check
pip show chainlit
How to fix it
Upgrade to Chainlit 2.9.4:
pip install --upgrade "chainlit>=2.9.4"The sources do not describe the code change. They list no interim mitigation. As general hardening, limit the server's outbound network access so it cannot reach internal ranges or the metadata endpoint, and require IMDSv2 on cloud hosts. Review who can sign in to the app.
How to tell if you were hit
Check web server and application logs for requests to /project/element with a url that points at private ranges, localhost or 169.254.169.254. Check the storage provider for stored objects that contain internal responses or metadata JSON. Look at outbound connections from the Chainlit host to metadata services or internal hosts it normally does not contact. If you find any, rotate the cloud credentials reachable from that host.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Chainlit versions prior to 2.9.4 contain a server-side request forgery (SSRF) vulnerability in the /project/element update flow when configured with the SQLAlchemy data layer backend. An authenticated client can provide a user-controlled url value in an Element, which is fetched by the SQLAlchemy element creation logic using an outbound HTTP GET request. This allows an attacker to make arbitrary HTTP requests from the Chainlit server to internal network services or cloud metadata endpoints and store the retrieved responses via the configured storage provider.
Questions
- Do I need to be logged in to exploit this?
Yes. The advisory describes an authenticated client. If your Chainlit app allows open registration, that bar is low.
- Does it affect every Chainlit deployment?
No. It applies to versions below 2.9.4 that use the SQLAlchemy data layer backend, where the element creation logic fetches the URL.
- Can the attacker read the response?
Yes. The fetched response is saved through the configured storage provider, so the attacker can retrieve it from there.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Chainlit vulnerabilities
All Chainlit entriesCVE-2026-45018
Chainlit has command injection via MCP stdio transport that allows unauthenticated remote code execution
critical9.8Aug 25, 2026CVE-2026-45019
Chainlist has SSRF via MCP SSE and streamable-http transports that allows unauthenticated internal network access
high7.2Aug 25, 2026CVE-2026-56104
Chainlit contains a session hijacking vulnerability
critical7.4Jun 22, 2026CVE-2026-22218
chainlit : Chainlit allows authenticated arbitrary file reads through custom element updates
high6.5Jan 20, 2026CVE-2025-68492
Chainlit contains an authorization bypass vulnerability
low4.2Jan 14, 2026
