CVE-2026-21883 Details
Description
Bokeh is an interactive visualization library written in Python. In versions 3.8.1 and below, if a server is configured with an allowlist (e.g., dashboard.corp), an attacker can register a domain like dashboard.corp.attacker.com (or use a subdomain if applicable) and lure a victim to visit it. The malicious site can then initiate a WebSocket connection to the vulnerable Bokeh server. Since the Origin header (e.g., http://dashboard.corp.attacker.com/) matches the allowlist according to the flawed logic, the connection is accepted. Once connected, the attacker can interact with the Bokeh server on behalf of the victim, potentially accessing sensitive data, or modifying visualizations. This issue is fixed in version 3.8.2.
A vulnerability allowing Cross-Site WebSocket Hijacking (CSWSH) has been identified in the Bokeh library, specifically in versions through 3.8.1. The issue arises when a Bokeh server is configured with an allowlist. An attacker can register a domain that matches the allowlist and lure a victim to visit it. Once the victim is on the site, the attacker can initiate a WebSocket connection to the vulnerable Bokeh server. The server mistakenly accepts the connection because the Origin header appears to be from a trusted source. This allows the attacker to interact with the Bokeh server on behalf of the victim, potentially accessing sensitive data or modifying visualizations.
Users can upgrade to Bokeh version 3.8.2 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://aydinnyunus.github.io/2026/01/24/bokeh-websocket-hijacking-cve-2026-21883/ | CVE | ExploitMitigationThird Party Advisory |
| https://github.com/bokeh/bokeh/commit/cedd113b0e271b439dce768671685cf5f861812e | [email protected] | Patch |
| https://github.com/bokeh/bokeh/security/advisories/GHSA-793v-589g-574v | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1385 | Missing Origin Validation in WebSockets | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| bokeh bokeh | < 3.8.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 9, 2026 | Initial Analysis | [email protected] |
| Jan 23, 2026 | CVE Modified | CVE |
| Jan 8, 2026 | New CVE Received | [email protected] |