Description
JupyterHub is software that allows users to create a multi-user server for Jupyter notebooks. In versions 4.1.0 through 5.4.4, XSRF protection (updated in 4.1.0) inappropriately treated requests with Sec-Fetch-Mode: no-cors as same-origin requests, bypassing XSRF checks. The JSON API is not affected, only HTTP form endpoints, such as /hub/spawn and /hub/accept-share, meaning attackers could trigger server spawn (but not access the server) and if the attacker is a JupyterHub user permitted to share access to their server, cause a user to accept a share and have access to the attacker's server. This issue has been fixed in version 5.4.5. If developers are unable to immediately upgrade, they can temporarily mitigate this issue by dropping requests to JupyterHub with Sec-Fetch-Mode: no-cors if they are using a reverse proxy.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| jupyterhub | jupyterhub | >= 4.1.0, < 5.4.5 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | jupyterhub | No fix yet | — |
| Debian 13 | jupyterhub | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | jupyterhub | No fix yet | — |
| Ubuntu 26.04 LTS | jupyterhub | No fix yet | — |
| Ubuntu 25.10 | jupyterhub | No fix yet | — |
| Ubuntu 24.04 LTS | jupyterhub | No fix yet | — |
| Ubuntu 22.04 LTS | jupyterhub | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | py3.10-jupyterhub +2 | 5.4.6-r0 | — |
| Wolfi rolling | py3.11-jupyterhub | 5.4.5-r0 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
romain-deperne/CVE-2026-40864 ★ 0 · Jun 13, 2026
JupyterHub CSRF via cross-origin form POST — CVE-2026-40864 / CVSS 5.4
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | jupyterhub | >= 4.1.0, < 5.4.5 | 5.4.5 | GHSA-m68r-v472-jgq9 |