incomplete JupyterHub logout with simultaneous JupyterLab sessions
Published 8 Nov 2021 · Updated 8 Jul 2026
Is your project on an affected jupyterhub?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- >=1.0.0 <1.5.0
- Fixed in
- 1.5.0
pip install 'jupyterhub>=1.5.0'Details
Impact
Users of JupyterLab with JupyterHub who have multiple JupyterLab tabs open in the same browser session, may see incomplete logout from the single-user server, as fresh credentials (for the single-user server only, not the Hub) reinstated after logout, if another active JupyterLab session is open while the logout takes place.
Patches
Upgrade to JupyterHub 1.5. For distributed deployments, it is jupyterhub in the _user_ environment that needs patching. There are no patches necessary in the Hub environment.
Workarounds
The only workaround is to make sure that only one JupyterLab tab is open when you log out.
Is GHSA-cw7p-q79f-m2v7 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected jupyterhub, and gives you the command that fixes it.
More advisories for jupyterhub
- MediumCVE-2026-54338JupyterHub has Unauthenticated Denial of Service via Unbounded Username Logging on Failed Login · 25 Aug 2026
- MediumCVE-2026-40864JupyterHub has cross-origin form POSTs bypass XSRF (CWE-352) · 5 May 2026
- MediumCVE-2026-33709JupyterHub has an Open Redirect Vulnerability · 3 Apr 2026
- HighCVE-2024-41942JupyterHub has a privilege escalation vulnerability with the `admin:users` scope · 8 Aug 2024
- HighCVE-2024-28233Cross site scripting (XSS) in JupyterHub via Self-XSS leveraged by Cookie Tossing · 28 Mar 2024
- MediumCVE-2020-36191Cross-Site Request Forgery in JupyterHub · 24 May 2022
References
- Linkgithub.com/jupyterhub/jupyterhub/security/advisories/GHSA-cw7p-q79f-m2v7
- Advisorynvd.nist.gov/vuln/detail/CVE-2021-41247
- Linkgithub.com/jupyterhub/jupyterhub/commit/5ac9e7f73a6e1020ffddc40321fc53336829fe27
- Packagegithub.com/jupyterhub/jupyterhub
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/jupyterhub/PYSEC-2021-386.yaml
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.