Bokeh server applications have Incomplete Origin Validation in WebSockets
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
bokehPyPI | < 3.8.2 | 3.8.2 |
Affected products
4- osv-coords3 versionspkg:apk/chainguard/kubeflow-pipelines-visualization-serverpkg:apk/wolfi/kubeflow-pipelines-visualization-serverpkg:pypi/bokeh
< 2.15.0-r3+ 2 more
- (no CPE)range: < 2.15.0-r3
- (no CPE)range: < 2.15.0-r3
- (no CPE)range: < 3.8.2
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-793v-589g-574vghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-21883ghsaADVISORY
- aydinnyunus.github.io/2026/01/24/bokeh-websocket-hijacking-cve-2026-21883ghsaWEB
- github.com/bokeh/bokeh/commit/cedd113b0e271b439dce768671685cf5f861812eghsax_refsource_MISCWEB
- github.com/bokeh/bokeh/security/advisories/GHSA-793v-589g-574vghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.