{"id":"CVE-2026-40864","published":"2026-05-22T20:13:05Z","modified":"2026-05-26T13:13:51Z","title":"JupyterHub: Cross-origin form POSTs bypass XSRF","vendor":"jupyterhub","product":"jupyterhub","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00179,"percentile":0.04426,"provenance":"source"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"references":[{"url":"https://github.com/jupyterhub/jupyterhub/security/advisories/GHSA-m68r-v472-jgq9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jupyterhub/jupyterhub/commit/9c5ec277d3cda5a59de2d8c8117efa77bd941127","tags":["x_refsource_MISC"]}],"priority":{"score":9.7,"factors":[{"name":"EPSS percentile","points":0.89},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.78}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-06-13","earliestUrl":"https://github.com/romain-deperne/CVE-2026-40864","repos":[{"name":"romain-deperne/CVE-2026-40864","url":"https://github.com/romain-deperne/CVE-2026-40864","stars":0,"created":"2026-06-13"}]},"first":{"date":"2026-06-13","source":"PoC-in-GitHub","url":"https://github.com/romain-deperne/CVE-2026-40864"},"provenance":"source"},"vendorSlug":"jupyterhub","affectedVersions":[{"vendor":"jupyterhub","product":"jupyterhub","versions":[">= 4.1.0, < 5.4.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-26T13:13:45.531785Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"jupyterhub","vulnerableRanges":[">=4.1.0, <5.4.5"],"patched":["5.4.5"],"from":["GHSA-m68r-v472-jgq9","PYSEC-2026-2189"],"provenance":"source"}],"summary":{"text":"An remote attacker can cross-origin form-POST to those endpoints without authentication, but only with a victim's user interaction, to trigger a server spawn (without gaining access to it) or, if the attacker is a JupyterHub user permitted to share their server, to get the victim to accept a share and reach the attacker's server.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:21:02Z"},"euvd":{"id":"EUVD-2026-31499","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-jupyterhub-cve-2021-41247","parents":[{"from":"CVE-2024-28233","to":"CVE-2026-40864","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["jupyterhub/_xsrf_utils.py"],"commits":["https://github.com/jupyterhub/jupyterhub/commit/e2798a088f5ad45340fe79cdf1386198e664f77f","https://github.com/jupyterhub/jupyterhub/commit/9c5ec277d3cda5a59de2d8c8117efa77bd941127"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2024-28233","published":"2024-03-27","fixed":"4.1.0","kev":false},{"cve":"CVE-2024-41942","published":"2024-08-08","fixed":"5.1.0","kev":false},{"cve":"CVE-2026-33709","published":"2026-04-03","fixed":"5.4.4","kev":false,"link":{"from":"CVE-2026-33709","to":"CVE-2026-40864","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:jupyterhub","fromFixed":"5.4.4","toFixed":"5.4.5","daysApart":49}]}},{"cve":"CVE-2026-40864","published":"2026-05-22","fixed":"5.4.5","kev":false},{"cve":"CVE-2026-54338","published":"2026-08-07","fixed":"5.5.0","kev":false,"link":{"from":"CVE-2026-40864","to":"CVE-2026-54338","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:jupyterhub","fromFixed":"5.4.5","toFixed":"5.5.0","daysApart":77}]}}],"package":"PyPI:jupyterhub"}}