Cross-site Request Forgery (CSRF) Affecting jupyterhub package, versions [4.1.0,5.4.5)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.16% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-JUPYTERHUB-16425791
  • published6 May 2026
  • disclosed5 May 2026
  • creditRomain Deperne

Introduced: 5 May 2026

CVE-2026-40864  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade jupyterhub to version 5.4.5 or higher.

Overview

jupyterhub is a JupyterHub: A multi-user server for Jupyter notebooks

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) in the handling of HTTP form endpoints when requests with the Sec-Fetch-Mode: no-cors header are incorrectly treated as same-origin, bypassing intended security checks. An attacker can trigger server spawn actions or cause a user to accept a server share by enticing them to visit a malicious site and submit a crafted form.

Note: This is only exploitable if the attacker is a permitted user and the victim is authenticated in the application.

Workaround

This vulnerability can be mitigated by configuring a reverse proxy to drop requests with the Sec-Fetch-Mode: no-cors header.

CVSS Base Scores

version 4.0
version 3.1