CVE-2026-56104: Chainlit Session Hijacking Vulnerability

chainlit Updated 01 Oct 2026

Summary

01/10/2026
Yes i
Critical
7.4

CVE-2026-56104: Chainlit contains a session hijacking vulnerability. Affects chainlit versions < 2.10.1. Fixed in 2.10.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Chainlit is an open-source framework designed for building and deploying interactive applications using Python. It allows developers to create chatbots and other interactive tools that can communicate with users in real-time. However, prior to version 2.10.1, Chainlit was found to be vulnerable to a session hijacking issue, which could allow unauthorized users to gain access to authenticated sessions.

Vulnerability Detail

Chainlit versions before 2.10.1 contain a session hijacking vulnerability that enables unauthenticated attackers to restore and inherit authenticated user sessions. This occurs when an attacker presents a valid sessionId during WebSocket session restoration without any ownership verification. As a result, attackers can exploit the restore_existing_session path to assume a victim's permissions and roles, leading to unauthorized access to tools and sensitive data that should be restricted to the authenticated user.

How To Fix

Minimum fixed version

2.10.1

This is the first release that contains the fix.

pip install --upgrade "chainlit==2.10.1"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, consider implementing additional session validation mechanisms on your server to verify the ownership of sessionIds before allowing session restoration. This could involve checking user credentials or implementing token-based authentication.

Conclusion

The session hijacking vulnerability in Chainlit prior to version 2.10.1 poses a significant risk to users by allowing unauthorized access to authenticated sessions. It is crucial to update to the latest version to protect against potential exploitation. Additionally, utilizing tools like Vulert can help monitor for vulnerabilities in your projects.

See every vulnerability recorded for chainlit →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 7.4, indicating a high level of severity.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

If exploited, this vulnerability could allow attackers to gain unauthorized access to sensitive data and perform actions on behalf of authenticated users.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities in your software using just the Pipfile.lock.

If you cannot update immediately, implement additional session validation as a temporary workaround to mitigate the risk of session hijacking.

Related vulnerabilities

Recent vulnerabilities recorded for chainlit.

How To Fix

Minimum fixed version

2.10.1

This is the first release that contains the fix.

pip install --upgrade "chainlit==2.10.1"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback