SA-26-720 High

Jupyter: Jupyter Server: Gateway WebSocket handler bypasses kernel execute authorization

Jupyter

Severity
High, CVSS 8.8
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Record
CVE-2026-114135
Affects
Jupyter
Known exploited
Not listed in the CISA Known Exploited Vulnerabilities catalog
Published
Record first published by the source
October 22, 2026
Source last modified
October 22, 2026

Description

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:

https://github.com/jupyter-server/jupyter_server/blob/v2.5.0/jupyter_server/services/kernels/websocket.py#L39-L47

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

1. Configure a custom Authorizer that returns false for execute on kernels for a regular authenticated user. 2. Configure GatewayClient.url on Jupyter Server 2.0.0-2.5.0. 3. The normal KernelWebsocketHandler would reject that user with 403 in pre_get. 4. Gateway mode replaces it with WebSocketChannelsHandler. Its authenticate method only rejects anonymous users, and get proceeds 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.handlers module still exposes the old behavior.

Description quoted from the NVD record.

Who is affected

Jupyter (also called Jupyter Server) is a tool where people write and run code inside shared documents called notebooks. This flaw affects versions 2.0.0 through 2.5.0 when the server is set up to pass its work to a separate Jupyter Gateway or Enterprise Gateway server and also uses custom permission rules to limit what users may do. A logged-in user who is not allowed to run code, such as a read-only user, could still run code and reach the data and login details that code can access. Later versions are affected only if someone manually turns the older gateway connection part back on. This flaw is rated High.

What to do

  1. The person who installed or runs Jupyter Server for your organization (a staff member, volunteer or IT provider) should check whether it uses a separate Jupyter Gateway or Enterprise Gateway server together with custom permission rules.
  2. If it does and the version is 2.0.0 through 2.5.0, update to 2.6.0 or later. That version uses the standard connection, which includes the permission check, by default.
  3. After updating, make sure nobody has manually added back the older, outdated gateway connection part, because doing so brings back the same problem.
  4. If an IT provider or vendor runs Jupyter for your organization, send them this advisory and ask when the update will be done.

Analysis written from the source record as of October 22, 2026 and reviewed before publishing.

Sources

MORE ADVISORIES

See all