Jupyter Server: Gateway WebSocket handler bypasses kernel execute authorization
Summary
Jupyter Server's gateway WebSocket handler checks that a user is authenticated, but it does not ask the configured Authorizer whether that user may execute kernels.
In Jupyter Server 2.0.0 through 2.5.0, enabling GatewayClient.url automatically replaced the normal kernel channel handler with this gateway-specific handler. An authenticated user who is denied the execute action on the kernels resource can therefore still open a kernel channel and send messages to the upstream kernel.
Details
The normal handler performs the expected authorization check before creating the WebSocket connection:
The gateway handler only checks current_user and then opens the upstream channel. It never calls authorizer.is_authorized(...):
https://github.com/jupyter-server/jupyter_server/blob/v2.5.0/jupyter_server/gateway/handlers.py#L49-L75 https://github.com/jupyter-server/jupyter_server/blob/v2.5.0/jupyter_server/gateway/handlers.py#L87-L98
Gateway mode selected that handler automatically by replacing handlers with matching routes:
https://github.com/jupyter-server/jupyter_server/blob/v2.5.0/jupyter_server/serverapp.py#L437-L446
PR #1261 stopped replacing the normal handler and routed gateway traffic through GatewayWebSocketConnection instead. This appears to have fixed the default gateway configuration in 2.6.0, although the deprecated handler is still present in current releases and can still be registered directly.
https://github.com/jupyter-server/jupyter_server/pull/1261
Code-level validation
- Configure a custom Authorizer that returns false for
executeonkernelsfor a regular authenticated user. - Configure
GatewayClient.urlon Jupyter Server 2.0.0-2.5.0. - The normal
KernelWebsocketHandlerwould reject that user with 403 inpre_get. - Gateway mode replaces it with
WebSocketChannelsHandler. Itsauthenticatemethod only rejects anonymous users, andgetproceeds to the upstream gateway without an authorization decision.
Impact
This is a missing authorization check, not an authentication bypass. It matters in deployments that use a restrictive custom Authorizer and Jupyter Gateway/Enterprise Gateway. A read-only or otherwise limited authenticated user can cross the intended authorization boundary and obtain kernel execution, with access to data and credentials available to that kernel.
Affected versions
- Default gateway configuration: 2.0.0 through 2.5.0
- 2.6.0 and later: the default path uses the authorized standard handler, but manually registering the deprecated
jupyter_server.gateway.handlersmodule still exposes the old behavior.
What to do
For default gateway configurations, upgrade to Jupyter Server 2.6.0 or later. In version 2.6.0 and later, avoid manually registering the deprecated jupyter_server.gateway.handlers module, which still exhibits the vulnerable behavior.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | jupyter-server | >= 2.0.0, < 2.6.0 | 2.6.0 |
References
- https://github.com/jupyter-server/jupyter_server/security/advisories/GHSA-354v-3q48-cv69
- https://nvd.nist.gov/vuln/detail/CVE-2026-114135
- https://github.com/jupyter-server/jupyter_server/pull/1261
- https://github.com/jupyter-server/jupyter_server/commit/35ffe5d435682128da16dc144a8e9e9f8fa85dd8
- https://github.com/jupyter-server/jupyter_server
- https://github.com/jupyter-server/jupyter_server/releases/tag/v2.6.0
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-862- Platform
- Python (PyPI)
- Package
jupyter-server- Disclosed
- 22.10.2026
- Updated
- 24.10.2026 00:07
Sources and licenses · Edited or translated by DockRay; source rights and applicable licenses are retained.
OSV / GitHub Advisory Database - GHSA-354v-3q48-cv69 - CC BY 4.0
Vulnerability history: jupyter-server
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 15
- First → latest
- 11.2020 10.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 1
- High 8
- Medium 6
Disclosures per year
- 2020: 2
- 2021: 0
- 2022: 2
- 2023: 3
- 2024: 1
- 2025: 0
- 2026: 7
-
Jupyter Server: Gateway WebSocket handler bypasses kernel execute authorization this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.