Cross-Site Request Forgery Vulnerability in JupyterHub by Project Jupyter
CVE-2026-40864
5.4MEDIUM
What is CVE-2026-40864?
A Cross-Site Request Forgery vulnerability exists in JupyterHub versions 4.1.0 to 5.4.4, where the implementation of XSRF protection fails to properly validate requests flagged with Sec-Fetch-Mode: no-cors. This allows attackers to bypass XSRF safeguards on HTTP form endpoints, notably /hub/spawn and /hub/accept-share. Although this vulnerability does not provide direct access to the server, it could enable an attacker with shared access to hijack user sessions, invoking unwanted server spawning actions. The issue is resolved in JupyterHub version 5.4.5, while temporary mitigations can be applied via reverse proxy configurations.
Affected Version(s)
jupyterhub >= 4.1.0, < 5.4.5
