# CVE-2026-21883: Bokeh server applications have Incomplete Origin Validation in WebSockets

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.5
- **CVSS:** 4.5 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: Active; Confidentiality impact: High; Integrity impact: High; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None; Exploit maturity: Unreported
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-1385
- **Aliases:** GHSA-793v-589g-574v, PYSEC-2026-1223
- **Published:** 2026-01-06T17:53:44.000Z
- **Modified:** 2026-09-10T03:50:32.759Z

## Who should check

- Projects that depend on PyPI package bokeh (\< 3.8.2)
- Anyone running bokeh \< 3.8.2

## 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.

## Affected and fixed versions

- PyPI `bokeh`: affected \< 3.8.2; fixed 3.8.2 (osv)
- bokeh: \< 3.8.2 (cvelist)

## Mitigation

- Upgrade bokeh to 3.8.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-21883. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-21883.md
Affected: bokeh < 3.8.2
Fixed in: 3.8.2

Steps:
1. Search this machine and project for bokeh (PyPI), bokeh: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-21883 being exploited?

There is no confirmed exploitation: CVE-2026-21883 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-21883?

Medium: CVSS 4.5 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-21883?

bokeh \< 3.8.2.

### Is there a fix for CVE-2026-21883?

Yes. Fixed in 3.8.2. Upgrade bokeh to 3.8.2 or later.

### How do I check if I'm affected by CVE-2026-21883?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/bokeh/bokeh/security/advisories/GHSA-793v-589g-574v>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-21883>
- vendor: <https://github.com/advisories/GHSA-793v-589g-574v>
- patch: <https://github.com/bokeh/bokeh/commit/cedd113b0e271b439dce768671685cf5f861812e>
- exploit: <https://aydinnyunus.github.io/2026/01/24/bokeh-websocket-hijacking-cve-2026-21883/>
- other: <https://aydinnyunus.github.io/2026/01/24/bokeh-websocket-hijacking-cve-2026-21883>
- other: <https://github.com/bokeh/bokeh>
- other: <https://pypi.org/project/bokeh>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-21883>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-793v-589g-574v> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-1223> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-21883> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-21883>
