CVE-2026-56104
Received Received - Intake
Session Hijacking in Chainlit via WebSocket Session Restoration

Publication date: 2026-06-22

Last updated on: 2026-06-22

Assigner: VulnCheck

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-22
Last Modified
2026-06-22
Generated
2026-06-22
AI Q&A
2026-06-22
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
chainlit chainlit to 2.10.1 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-862 The product does not perform an authorization check when an actor attempts to access a resource or perform an action.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

CVE-2026-56104 is a session hijacking vulnerability in Chainlit versions before 2.10.1. It allows unauthenticated attackers to restore and take over authenticated user sessions by presenting a valid sessionId during WebSocket session restoration without verifying if the attacker actually owns that session.

This happens because the system does not check ownership in the restore_existing_session path, enabling attackers to assume the victim's permissions and roles.

As a result, attackers can invoke tools and access data that should be restricted to the authenticated victim.

Impact Analysis

This vulnerability can have serious impacts as it allows attackers to hijack user sessions without authentication.

  • Attackers can gain unauthorized access to tools and sensitive data that are normally restricted to the legitimate user.
  • They can assume the victim's permissions and roles, potentially leading to unauthorized actions within the system.
  • This can result in data breaches, unauthorized data manipulation, and compromise of user privacy.
Detection Guidance

This vulnerability involves unauthorized restoration of WebSocket sessions by presenting a valid sessionId without ownership verification. Detection would involve monitoring WebSocket session restoration attempts, especially those using the restore_existing_session path.

To detect potential exploitation, you can look for unusual or repeated WebSocket session restoration requests with sessionIds that do not match the authenticated user.

Since the vulnerability is specific to Chainlit versions before 2.10.1, verifying the version of Chainlit running on your system is a primary step.

  • Check Chainlit version: run `chainlit --version` or check the installed package version.
  • Monitor WebSocket traffic for restore_existing_session requests with sessionIds.
  • Use network packet capture tools like `tcpdump` or `Wireshark` to filter WebSocket traffic and analyze session restoration messages.
  • Look for authorization errors or unusual session restoration failures in Chainlit logs, which may indicate attempts to hijack sessions.
Mitigation Strategies

The primary mitigation step is to upgrade Chainlit to version 2.10.1 or later, where the vulnerability has been fixed by adding proper session ownership validation during WebSocket session restoration.

Until the upgrade can be applied, consider restricting access to the Chainlit WebSocket endpoints to trusted networks or users to reduce the risk of exploitation.

Monitor logs for suspicious session restoration attempts and revoke any suspicious sessionIds if possible.

  • Upgrade Chainlit to version 2.10.1 or later.
  • Restrict network access to Chainlit WebSocket endpoints.
  • Monitor and audit session restoration logs for unauthorized attempts.
Compliance Impact

The vulnerability allows unauthenticated attackers to hijack authenticated user sessions and assume the victim's permissions and roles, enabling unauthorized access to restricted tools and data.

Such unauthorized access to sensitive user data and functionality could lead to violations of data protection regulations and standards like GDPR and HIPAA, which require strict controls on access to personal and protected health information.

By enabling session hijacking without ownership verification, the vulnerability undermines the confidentiality and integrity of user sessions, potentially resulting in non-compliance with these regulations.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-56104. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart