Missing Origin Validation in WebSockets Affecting bokeh package, versions [,3.8.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.16% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-BOKEH-14894275
  • published7 Jan 2026
  • disclosed6 Jan 2026
  • creditUnknown

Introduced: 6 Jan 2026

CVE-2026-21883  (opens in a new tab)
CWE-1385  (opens in a new tab)

How to fix?

Upgrade bokeh to version 3.8.2 or higher.

Overview

bokeh is an Interactive plots and applications in the browser from Python

Affected versions of this package are vulnerable to Missing Origin Validation in WebSockets via the match_host function in the server/util.py file. An attacker can gain unauthorized access to sensitive data or modify visualizations by exploiting flawed hostname validation logic in WebSocket connections.

Note: This is only exploitable if the server is deployed with an allowlist and the attacker can register a domain that starts with an allowed pattern.

References

CVSS Base Scores

version 4.0
version 3.1