# PYSEC-2026-4028: Chainlit contains a session hijacking vulnerability

- Database: PyPA
- Published: 2026-10-01
- Modified: 2026-10-01

## Tracked as

- [CVE-2026-56104](https://cve.now/CVE-2026-56104.md): Chainlit \< 2.10.1 Session Hijacking via WebSocket Session Restoration

## Also published as

- [GHSA-C39V-8HRW-H448](https://cve.now/GHSA-C39V-8HRW-H448.md) (GitHub)

## Affected versions

- chainlit (PyPI): fixed in 2.10.1

## Description

Chainlit before 2.10.1 contains a session hijacking vulnerability that allows unauthenticated attackers to restore and inherit authenticated user sessions by presenting a valid sessionId during WebSocket session restoration without ownership verification. Attackers can exploit the restore_existing_session path to assume a victim's permissions and roles, enabling unauthorized invocation of tools and access to data restricted to the authenticated victim.

## References

- https://nvd.nist.gov/vuln/detail/CVE-2026-56104
- https://github.com/Chainlit/chainlit/pull/2857
- https://github.com/Chainlit/chainlit/commit/5effb664f1e0af4a4f0a42fe63ea979676039a7f
- https://github.com/Chainlit/chainlit
- https://github.com/Chainlit/chainlit/releases/tag/2.10.1
- https://www.vulncheck.com/advisories/chainlit-session-hijacking-via-websocket-session-restoration
- https://pypi.org/project/chainlit
- https://github.com/advisories/GHSA-c39v-8hrw-h448

Page: https://cve.now/PYSEC-2026-4028

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
