CVE-2026-40864Jupyterhub
Medium 4.3 No auth needed
Follow: this CVE · Jupyter · Jupyterhub We alert you by email or Slack (account required).
- Priority
- 41
- CVSS 3.1
- 4.3
- EPSS
- —
- Auth required
- No
- Published
- May 22, 2026
- Updated
- Jul 23, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-352
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
What happens
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
- Apply the vendor's security update for Jupyterhub.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | jupyterhub |
≥ 4.1.0 < 5.4.5 |
5.4.5 |
pip install "jupyterhub>=5.4.5" |
| PyPI | jupyterhub |
≥ 4.1.0 < 5.4.5 |
5.4.5 |
pip install "jupyterhub>=5.4.5" |
Per OSV / GitHub Advisories (GHSA-m68r-v472-jgq9, PYSEC-2026-2189). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| jupyter | jupyterhub | ≥ 4.1.0 < 5.4.5 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Mitigation Vendor Advisory