Medium

JupyterHub has cross-origin form POSTs bypass XSRF (CWE-352)

  • Disclosed: 05.05.2026
  • Updated: 11.10.2026 15:17

Summary

JupyterHub's XSRF protection (updated in 4.1.0) inappropriately treated requests with Sec-Fetch-Mode: no-cors as same-origin requests, which they are not, 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.

Patches

Upgrade to JupyterHub 5.4.5.

Mitigations

If a reverse proxy is in use, drop requests to JupyterHub with Sec-Fetch-Mode: no-cors.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) jupyterhub >= 4.1.0, < 5.4.5 5.4.5

References

CVSS score 5.4/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
Weakness (CWE)
CWE-352
Platform
Python (PyPI)
Package
jupyterhub
Disclosed
05.05.2026
Updated
11.10.2026 15:17

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2026-2189 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-m68r-v472-jgq9 - CC BY 4.0

Vulnerability history: jupyterhub

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
8
First → latest
04.2019 08.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 2
  • Medium 6

Disclosures per year

  1. 2019: 1
  2. 2020: 0
  3. 2021: 2
  4. 2022: 0
  5. 2023: 0
  6. 2024: 2
  7. 2025: 0
  8. 2026: 3
  1. JupyterHub has cross-origin form POSTs bypass XSRF (CWE-352) this entry
    Medium · 5.4 CVE-2026-40864 >= 4.1.0, < 5.4.5 5.4.5
  2. High · 7.2 CVE-2024-41942 < 4.1.6, >= 5.0.0, < 5.1.0 4.1.6, 5.1.0
  3. Medium · 3.5 CVE-2021-41247 >= 1.0.0, < 1.5.0 1.5.0
  4. Medium · 4.5 CVE-2020-36191 < 1.2.0b1 1.2.0b1
  5. Medium · 6.1 CVE-2019-10255 < 0.9.6 0.9.6

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.