CVE-2026-40864JupyterHub: 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 requests to JupyterHub with Sec-Fetch-Mode: no-cors if they are using a reverse proxy.
What to do
Fixed builds are available from PyPI: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | jupyterhub | Fix pending | UBUNTU-CVE-2026-40864 | |
| Ubuntu 26.04 | jupyterhub | Under investigation | UBUNTU-CVE-2026-40864 | |
| Ubuntu 25.10 | jupyterhub | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-40864 | |
| Ubuntu 24.04 | jupyterhub | Under investigation | UBUNTU-CVE-2026-40864 | |
| Ubuntu 22.04 | jupyterhub | Under investigation | UBUNTU-CVE-2026-40864 | |
| Debian 14 | jupyterhub | Fix pending | DEBIAN-CVE-2026-40864 | |
| Debian 13 | jupyterhub | Fix pending | DEBIAN-CVE-2026-40864 | |
| PyPI library | jupyterhub | Fixed | 5.4.5 | PYSEC-2026-2189 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- jupyterhub: affected: >= 4.1.0, < 5.4.5
References
- https://github.com/jupyterhub/jupyterhub/security/advisories/GHSA-m68r-v472-jgq9
- https://github.com/jupyterhub/jupyterhub/commit/9c5ec277d3cda5a59de2d8c8117efa77bd941127
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.