CVE-2026-40864
published 2026-05-22CVE-2026-40864: 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…
PriorityP423medium4.3CVSS 3.1
AVNACLPRNUIRSUCNILAN
EPSS
0.16%
5.5th percentile
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
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| jupyter | jupyterhub | >= 4.1.0 < 5.4.5 | 5.4.5 |
| jupyterhub | jupyterhub | — | — |
| jupyterhub | jupyterhub | >= 4.1.0 < 5.4.5 | 5.4.5 |
CVSS provenance
nvdv3.14.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
cvelistv5v3.15.4MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
VulDB
jupyterhub up to 5.4.4 JSON API /hub/spawn cross-site request forgery (GHSA-m68r-v472-jgq9)
vuldb·2026-05-23
CVE-2026-40864 [LOW] jupyterhub up to 5.4.4 JSON API /hub/spawn cross-site request forgery (GHSA-m68r-v472-jgq9)
A vulnerability, which was classified as problematic, was found in jupyterhub up to 5.4.4. Affected is an unknown function of the file /hub/spawn of the component JSON API. Such manipulation leads to cross-site request forgery.
This vulnerability is documented as CVE-2026-40864. The attack can be executed remotely. There is not any exploit available.
You should upgrade the affected component.
CVEList
JupyterHub: Cross-origin form POSTs bypass XSRF
cvelistv5·2026-05-22·CVSS 5.4
CVE-2026-40864 [MEDIUM] CWE-352 JupyterHub: Cross-origin form POSTs bypass XSRF
JupyterHub: Cross-origin form POSTs bypass XSRF
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 reque
GHSA
JupyterHub has cross-origin form POSTs bypass XSRF (CWE-352)
ghsa·2026-05-05
CVE-2026-40864 [MEDIUM] CWE-352 JupyterHub has cross-origin form POSTs bypass XSRF (CWE-352)
JupyterHub has cross-origin form POSTs bypass XSRF (CWE-352)
## Summary
JupyterHub's XSRF protection (updated in 4.1.0) inappropriately treated requests with `Sec-Fetch-Mode: no-cors` as same-origin requests, which they are not, 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.
## Patches
Upgrade to JupyterHub 5.4.5.
## Mitigations
If a reverse proxy is in use, drop requests to JupyterHub with `Sec-Fetch-Mode: no-cors`.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2026-05-22
Published