5.4
MEDIUM CVSS 3.1
CVE-2026-40864
JupyterHub: Cross-origin form POSTs bypass XSRF
Description

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.

INFO

Published Date :

May 22, 2026, 9:16 p.m.

Last Modified :

June 1, 2026, 6:01 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2026-40864 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Jupyter jupyterhub
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM MITRE-CVE
CVSS 3.1 MEDIUM [email protected]
CVSS 3.1 MEDIUM [email protected]
Solution
Update JupyterHub to version 5.4.5 or configure a reverse proxy to drop no-cors requests.
  • Upgrade JupyterHub to version 5.4.5.
  • Configure reverse proxy to drop Sec-Fetch-Mode: no-cors requests.
Public PoC/Exploit Available at Github

CVE-2026-40864 has a 2 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-40864.

URL Resource
https://github.com/jupyterhub/jupyterhub/commit/9c5ec277d3cda5a59de2d8c8117efa77bd941127 Patch
https://github.com/jupyterhub/jupyterhub/security/advisories/GHSA-m68r-v472-jgq9 Mitigation Vendor Advisory
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-40864 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-40864 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

JupyterHub XSRF bypass via cross-origin form POST (Sec-Fetch-Mode: no-cors) — CWE-352

HTML

Updated: 15 hours, 5 minutes ago
0 stars 0 fork 0 watcher
Born at : June 13, 2026, 7:11 a.m. This repo has been linked 1 different CVEs too.

Profile README

Updated: 14 hours, 48 minutes ago
0 stars 0 fork 0 watcher
Born at : April 29, 2026, 8:58 p.m. This repo has been linked 10 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-40864 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-40864 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Jun. 01, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
    Added CPE Configuration OR *cpe:2.3:a:jupyter:jupyterhub:*:*:*:*:*:*:*:* versions from (including) 4.1.0 up to (excluding) 5.4.5
    Added Reference Type GitHub, Inc.: https://github.com/jupyterhub/jupyterhub/commit/9c5ec277d3cda5a59de2d8c8117efa77bd941127 Types: Patch
    Added Reference Type GitHub, Inc.: https://github.com/jupyterhub/jupyterhub/security/advisories/GHSA-m68r-v472-jgq9 Types: Mitigation, Vendor Advisory
  • New CVE Received by [email protected]

    May. 22, 2026

    Action Type Old Value New Value
    Added Description 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.
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
    Added CWE CWE-352
    Added Reference https://github.com/jupyterhub/jupyterhub/commit/9c5ec277d3cda5a59de2d8c8117efa77bd941127
    Added Reference https://github.com/jupyterhub/jupyterhub/security/advisories/GHSA-m68r-v472-jgq9
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.