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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-05-22 · Modified: 2026-05-26
- Aliases: GHSA-m68r-v472-jgq9, BIT-jupyterhub-2026-40864, PYSEC-2026-2189, UBUNTU-CVE-2026-40864, DEBIAN-CVE-2026-40864, CGA-3wh5-hp3g-hvfp, CGA-594f-gv65-fwcg, CGA-c5qf-cq4c-3qc9, CGA-f73w-xm5h-c93g, CGA-hv52-58xx-jwx7, CGA-mgfm-rcqc-j8m5, CGA-qqcv-qmfg-pph3, CGA-qqhc-wwp3-hh3c
- Record: https://cvemate.com/vulnerability/CVE-2026-40864 · JSON: https://cvemate.com/vulnerability/CVE-2026-40864/json

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

## Signals

- CVSS: 5.4 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
- EPSS: 0.159%, percentile 5.235%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard py3.10-jupyterhub (Chainguard): \< 5.4.6-r0
- chainguard py3.11-jupyterhub (Chainguard): \< 5.4.5-r0 \| \< 5.4.6-r0
- chainguard py3.12-jupyterhub (Chainguard): \< 5.4.6-r0
- chainguard py3.13-jupyterhub (Chainguard): \< 5.4.6-r0
- wolfi py3.10-jupyterhub (Wolfi): \< 5.4.6-r0
- wolfi py3.11-jupyterhub (Wolfi): \< 5.4.5-r0 \| \< 5.4.6-r0
- wolfi py3.12-jupyterhub (Wolfi): \< 5.4.6-r0
- wolfi py3.13-jupyterhub (Wolfi): \< 5.4.6-r0
- debian jupyterhub (Debian): All versions (No fix recorded)
- ubuntu jupyterhub (Ubuntu): All versions (No fix recorded)
- jupyter jupyterhub: ≥ 4.1.0, \< 5.4.5
- jupyterhub jupyterhub: ≥ 4.1.0, \< 5.4.5
- PyPI jupyterhub (PyPI): ≥ 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>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40864>
- <https://github.com/jupyterhub/jupyterhub>
- <https://ubuntu.com/security/CVE-2026-40864>
- <https://www.cve.org/CVERecord?id=CVE-2026-40864>
- <https://security-tracker.debian.org/tracker/CVE-2026-40864>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40864.json>

---

Data as of 2026-12-05T09:21:57.231Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
