# CVE-2026-40864: JupyterHub: Cross-origin form POSTs bypass XSRF

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-05-05T18:10:58.000Z
- Modified: 2026-09-10T03:51:06.307Z
- Also known as: GHSA-m68r-v472-jgq9, BIT-JUPYTERHUB-2026-40864, PYSEC-2026-2189
- Weaknesses: CWE-352
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- jupyterhub jupyterhub: >= 4.1.0, < 5.4.5
- jupyterhub (PyPI): from 4.1.0 before 5.4.5
- jupyter jupyterhub: from 4.1.0 before 5.4.5
- jupyterhub (Bitnami): from 4.1.0 before 5.4.5

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/jupyterhub/jupyterhub/security/advisories/GHSA-m68r-v472-jgq9> (advisory, mitigation, vendor-advisory, web)
- <https://github.com/jupyterhub/jupyterhub/commit/9c5ec277d3cda5a59de2d8c8117efa77bd941127> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40864> (advisory, web)
- <https://github.com/jupyterhub/jupyterhub> (package)

## Sources

- CVE List: [CVE-2026-40864](https://www.cve.org/CVERecord?id=CVE-2026-40864), CVE Terms of Use, modified 2026-05-26
- GitHub Advisory Database: [GHSA-m68r-v472-jgq9](https://github.com/advisories/GHSA-m68r-v472-jgq9), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-40864](https://nvd.nist.gov/vuln/detail/CVE-2026-40864), Public domain, modified 2026-07-23
- PyPA Advisory Database: [PYSEC-2026-2189](https://osv.dev/vulnerability/PYSEC-2026-2189), CC-BY-4.0, modified 2026-07-13
- Bitnami Vulnerability Database: [BIT-JUPYTERHUB-2026-40864](https://osv.dev/vulnerability/BIT-JUPYTERHUB-2026-40864), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-40864 · Whole record: https://cve.day/CVE-2026-40864.json · Rebuilt by cve.day 2026-11-25T22:59:22.209Z
