Skip to content
MediumVulnerability

CVE-2026-40864: JupyterHub XSRF protection bypass on HTTP form endpoints

Identifier
CVE-2026-40864
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.

Summary

JupyterHub versions 4.1.0 through 5.4.4 treat requests carrying Sec-Fetch-Mode: no-cors as same-origin, which bypasses XSRF checks (CVE-2026-40864). The JSON API is unaffected, but HTTP form endpoints such as /hub/spawn and /hub/accept-share are exposed, letting an attacker trigger a server spawn or, if the attacker is a user permitted to share their server, make another user accept a share and gain access to the attacker's server.

Mitigation

Fixed in version 5.4.5. If an immediate upgrade is not possible, temporarily drop requests to JupyterHub that carry Sec-Fetch-Mode: no-cors when using a reverse proxy.