CVE-2026-21883: Bokeh Incomplete Origin Validation in WebSockets

bokeh Updated 06 Jan 2026

Summary

06/01/2026
Yes i
Moderate
4.5

CVE-2026-21883: Bokeh server applications have Incomplete Origin Validation in WebSockets. Affects bokeh versions < 3.8.2. Fixed in 3.8.2. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Bokeh is an open-source Python library that enables the creation of interactive visualizations for modern web browsers. It allows users to build complex dashboards and applications with rich visual elements. However, deployed Bokeh server instances are vulnerable to a specific issue related to WebSocket connections, which can lead to unauthorized access and data manipulation.

Vulnerability Detail

This vulnerability allows for Cross-Site WebSocket Hijacking (CSWSH) of a deployed Bokeh server instance. The flaw originates from the match_host function in the server's utility module, which incorrectly validates hostnames against an allowlist. An attacker can exploit this by registering a domain that matches the allowlist pattern, allowing them to initiate a WebSocket connection to the Bokeh server and interact with it on behalf of the victim. This could lead to unauthorized access to sensitive data or modifications to visualizations.

How To Fix

Minimum fixed version

3.8.2

This is the first release that contains the fix.

pip install --upgrade "bokeh==3.8.2"

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

Workaround

There are currently no known workarounds for this vulnerability. It is strongly recommended to update to the patched version as soon as possible.

Conclusion

The CVE-2026-21883 vulnerability in Bokeh poses a significant risk to deployed server instances due to incomplete origin validation in WebSockets. It is essential to update to version 3.8.2 or later to mitigate this risk. Users are encouraged to utilize tools like Vulert for ongoing monitoring of vulnerabilities in their applications.

See every vulnerability recorded for bokeh →

Share this vulnerability

FAQ

Cross-Site WebSocket Hijacking (CSWSH) is a type of attack where an attacker can hijack a WebSocket connection to a server, allowing them to send and receive messages as if they were the legitimate user.

If you are running a version of Bokeh prior to 3.8.2, your server may be vulnerable. You can check your version by running pip show bokeh in your terminal.

While there are no workarounds available, it is crucial to prioritize updating to the patched version to protect your server from potential attacks.

No, this vulnerability only affects deployed Bokeh server instances and does not impact static HTML outputs or standalone embedded plots.

Vulert is a monitoring tool that alerts users in real-time for open-source vulnerabilities in their software. You can use the Vulert playground to check if your application is affected by this vulnerability without needing to sign up.

How To Fix

Minimum fixed version

3.8.2

This is the first release that contains the fix.

pip install --upgrade "bokeh==3.8.2"

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