Advisory

PYSEC-2026-1237

Also known as: CVE-2026-22219, GHSA-2g59-m95p-pgfq

Summary

Chainlit contain a server-side request forgery (SSRF) vulnerability

Details

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.

Severity

High Basis: CVSS v3 score 7.7, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

Dates

Published
2026-07-07 16:03 UTC
Modified
2026-07-07 17:47 UTC

Affected packages and fixes

chainlit

PyPI · All systems

Affected

  • introduced 0, fixed 2.9.4 (ecosystem)

Fixed versions

2.9.4

Fix

  • Fixed version 2.9.4
    pip install --upgrade chainlit==2.9.4

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences