Advisory

PYSEC-2026-598

Also known as: CVE-2026-22218, GHSA-gm79-2pvc-wc75

Summary

The record has no summary.

Details

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.

Severity

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

Dates

Published
2026-01-20 00:15 UTC
Modified
2026-11-16 22:55 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