Skip to content
Heist/ feed
Back to feed
Medium

Bokeh server applications have Incomplete Origin Validation in WebSockets

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-21883
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 05:45 UTC · Revision 1

Source evidence

Bokeh server applications have Incomplete Origin Validation in WebSockets

core-osv · Original source

Published 8 Jan 2026, 01:20 UTC

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.

osv:CVE-2026-21883
Complete source record
{
  "id": "4ea31121247dff18ca8958fba7d42c3b7e3e0778925feb1b91b03dcedba641fe",
  "url": "https://osv.dev/vulnerability/CVE-2026-21883",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Bokeh server applications have Incomplete Origin Validation in WebSockets",
    "summary": "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.",
    "evidence": "osv:CVE-2026-21883",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-21883",
      "aliases": [
        "CVE-2026-21883",
        "GHSA-793v-589g-574v",
        "PYSEC-2026-1223"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/bokeh/bokeh",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "e5ce879c388a990e2977d126be14db5f642cf540"
                },
                {
                  "fixed": "cedd113b0e271b439dce768671685cf5f861812e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:bokeh:bokeh:*:*:*:*:*:python:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.8.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "cedd113b0e271b439dce768671685cf5f861812e"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.0.0",
            "1.4.0",
            "1.3.4",
            "1.3.2",
            "1.3.1",
            "1.3.0",
            "1.2.0",
            "1.1.0",
            "1.0.4",
            "1.0.3",
            "1.0.2",
            "1.0.1",
            "1.0.0",
            "0.13.0",
            "0.12.16",
            "0.12.15",
            "0.12.14",
            "0.12.13",
            "0.12.12",
            "0.12.11",
            "0.12.10",
            "0.12.9",
            "0.12.7",
            "0.12.6",
            "0.12.5",
            "0.12.4",
            "0.12.3",
            "0.12.2",
            "0.12.1",
            "0.12.0",
            "0.11.1",
            "0.11.0",
            "0.10.0",
            "0.9.3",
            "0.9.2",
            "0.9.1",
            "0.9.0",
            "0.8.2",
            "0.5.0",
            "0.4.4",
            "0.4.2",
            "0.4.0",
            "0.3.0",
            "0.1.1",
            "0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-21883.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:26.281697128Z",
      "provider": "osv",
      "references": [
        "https://aydinnyunus.github.io/2026/01/24/bokeh-websocket-hijacking-cve-2026-21883/",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/21xxx/CVE-2026-21883.json",
        "https://github.com/bokeh/bokeh/security/advisories/GHSA-793v-589g-574v",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-21883",
        "https://github.com/bokeh/bokeh/commit/cedd113b0e271b439dce768671685cf5f861812e"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-1385"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/21xxx/CVE-2026-21883.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-21883",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 492807,
  "published_at": "2026-01-08T01:20:53.479+00:00"
}