CVE-2026-40864: jupyter jupyterhub Cross-Site Request Forgery (CSRF)
Vulnerability summary
CVE-2026-40864 is a medium (CVSS 5.4) Cross-Site Request Forgery (CSRF) vulnerability in jupyter jupyterhub. EPSS estimates a 0.18% chance of exploitation in the next 30 days, higher than 7% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 22-05-2026PublishedVulnerability first disclosed.
- 26-05-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · PypiEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:NDiffers
- OSV · DebianEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:NDiffers
- OSV · WolfiEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
- OSV · ChainguardEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
- NVDNIST4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:NDiffers
EPSS trend
Probability
0.18%
Chance of exploitation in the next 30 days
Percentile
7%
Versus all other CVEs
30-day change
+0.02 pp
From 0.16% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard4 products
- py3.10-jupyterhub< 5.4.6-r0
- py3.11-jupyterhub< 5.4.5-r0 | < 5.4.6-r0
- py3.12-jupyterhub< 5.4.6-r0
- py3.13-jupyterhub< 5.4.6-r0
Wolfi4 products
- py3.10-jupyterhub< 5.4.6-r0
- py3.11-jupyterhub< 5.4.5-r0 | < 5.4.6-r0
- py3.12-jupyterhub< 5.4.6-r0
- py3.13-jupyterhub< 5.4.6-r0
Debian1 product
- jupyterhubAll versions (No fix recorded)
Jupyter1 product
- jupyterhub≥ 4.1.0, < 5.4.5
Jupyterhub1 product
- jupyterhub≥ 4.1.0, < 5.4.5
PyPI1 product
- jupyterhub≥ 4.1.0, < 5.4.5
Ubuntu1 product
- jupyterhubAll versions (No fix recorded)
7 vendors · 13 products
References
8 links- github.com/jupyterhub/jupyterhub/security/advisories/GHSA-m68r-v472-jgq9X Refsource CONFIRMWEBAdvisoryREPORTMitigationVendor Advisory
- github.com/jupyterhub/jupyterhub/commit/9c5ec277d3cda5a59de2d8c8117efa77bd941127X Refsource MISCWEBFIXREPORTPatch