CVE-2026-40864
MEDIUM 4.3CVSS 3.1JupyterHub has cross-origin form POSTs bypass XSRF (CWE-352)
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.
- Published
- 22 May 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-352
- Also known as
- BIT-jupyterhub-2026-40864GHSA-m68r-v472-jgq9PYSEC-2026-2189
- Sources
- NVDJSONOSV GHSA-m68r-v472-jgq9JSONOSV PYSEC-2026-2189JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jupyter | jupyterhubcpe:2.3:a:jupyter:jupyterhub:*:*:*:*:*:*:*:* |
>= 4.1.0, < 5.4.5 | 5.4.5 |
| OSV | PyPI | jupyterhub | >= 4.1.0, < 5.4.5 | 5.4.5 |
References
- https://github.com/jupyterhub/jupyterhub/commit/9c5ec277d3cda5a59de2d8c8117efa77bd941127 · Patch, WEB, FIX
- https://github.com/jupyterhub/jupyterhub/security/advisories/GHSA-m68r-v472-jgq9 · Mitigation, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-40864 · ADVISORY
- https://github.com/jupyterhub/jupyterhub · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 22 May 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 22 May 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 5 May 2026)