Skip to content
Heist/ feed
Back to feed
Medium

jupyterhub — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-40864

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.

Products
jupyterhub
Affected versions
2.0.0+ds1-1, 2.0.0+ds1-2, 3.0.0+ds1-1, 5.2.1+ds1-2, 5.2.1+ds1-3, 5.2.1+ds1-4, 5.2.1+ds1-5
Fixed versions
Not specified
CVEs
CVE-2026-40864
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:11 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-40864

core-osv · Original source

Published 22 May 2026, 21:16 UTC

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.

osv:UBUNTU-CVE-2026-40864

jupyterhub

Fixed versions: Not specified

jupyterhub

Fixed versions: Not specified

jupyterhub

Fixed versions: Not specified

jupyterhub

Fixed versions: Not specified

jupyterhub

Fixed versions: Not specified

Complete source record
{
  "id": "9dc705891322b75f0e37c9d4b8eb0d1f3e2e6c1245c8e6278bf68550710c1b11",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-40864",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-40864",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-40864",
    "products": [
      {
        "name": {
          "value": "jupyterhub",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.0.0+ds1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.0.0+ds1-2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "jupyterhub",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.0.0+ds1-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "jupyterhub",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.2.1+ds1-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.2.1+ds1-3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.2.1+ds1-4",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "jupyterhub",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.2.1+ds1-4",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "5.2.1+ds1-5",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "jupyterhub",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.2.1+ds1-4",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-40864",
      "aliases": [
        "UBUNTU-CVE-2026-40864"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "jupyterhub",
            "purl": "pkg:deb/ubuntu/jupyterhub?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "2.0.0+ds1-1",
            "2.0.0+ds1-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40864.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "jupyterhub",
                "binary_version": "2.0.0+ds1-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "jupyterhub",
            "purl": "pkg:deb/ubuntu/jupyterhub?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "3.0.0+ds1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40864.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "jupyterhub",
                "binary_version": "3.0.0+ds1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "jupyterhub",
            "purl": "pkg:deb/ubuntu/jupyterhub?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "5.2.1+ds1-2",
            "5.2.1+ds1-3",
            "5.2.1+ds1-4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40864.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "jupyterhub",
                "binary_version": "5.2.1+ds1-4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "jupyterhub",
            "purl": "pkg:deb/ubuntu/jupyterhub?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "5.2.1+ds1-4",
            "5.2.1+ds1-5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40864.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "jupyterhub",
                "binary_version": "5.2.1+ds1-5"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "jupyterhub",
            "purl": "pkg:deb/ubuntu/jupyterhub?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "5.2.1+ds1-4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40864.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "jupyterhub",
                "binary_version": "5.2.1+ds1-4"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:58:14.542236672Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-40864"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-40864",
        "https://www.cve.org/CVERecord?id=CVE-2026-40864",
        "https://github.com/jupyterhub/jupyterhub/security/advisories/GHSA-m68r-v472-jgq9",
        "https://github.com/jupyterhub/jupyterhub/commit/9c5ec277d3cda5a59de2d8c8117efa77bd941127"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-40864",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 358416,
  "published_at": "2026-05-22T21:16:00+00:00"
}