CVEfocus › CVE database › CVE-2026-40864

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

CVSS 5.4 MediumEPSS 0.2% (higher than 4% of CVEs)Published 2026-05-22Updated 2026-05-26Assigner: GitHub_M

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.

CWE-352

What to do

Fixed builds are available from PyPI: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
3Fix pending
3Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10jupyterhubFix pendingUBUNTU-CVE-2026-40864
Ubuntu 26.04jupyterhubUnder investigationUBUNTU-CVE-2026-40864
Ubuntu 25.10jupyterhubWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-40864
Ubuntu 24.04jupyterhubUnder investigationUBUNTU-CVE-2026-40864
Ubuntu 22.04jupyterhubUnder investigationUBUNTU-CVE-2026-40864
Debian 14jupyterhubFix pendingDEBIAN-CVE-2026-40864
Debian 13jupyterhubFix pendingDEBIAN-CVE-2026-40864
PyPI libraryjupyterhubFixed5.4.5PYSEC-2026-2189

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.