High

JupyterHub has a privilege escalation vulnerability with the `admin:users` scope

  • Disclosed: 08.08.2024
  • Updated: 11.10.2026 15:17

Summary

If a user is granted the admin:users scope, they may escalate their own privileges by making themselves a full admin user.

Details

The admin:users scope allows a user to edit user records:

admin:users

Read, write, create and delete users and their authentication state, not including their servers or tokens.

-- https://jupyterhub.readthedocs.io/en/stable/rbac/scopes.html#available-scopes

However, this includes making users admins. Admin users are granted scopes beyond admin:users making this a mechanism by which granted scopes may be escalated.

Impact

The impact is relatively small in that admin:users is already an extremely privileged scope only granted to trusted users. In effect, admin:users is equivalent to admin=True, which is not intended.

Note that the change here only prevents escalation to the built-in JupyterHub admin role that has unrestricted permissions. It does not prevent users with e.g. groups permissions from granting themselves or other users permissions via group membership, which is intentional.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) jupyterhub < 4.1.6, >= 5.0.0, < 5.1.0 4.1.6, 5.1.0

References

CVSS score 7.2/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-274
Platform
Python (PyPI)
Package
jupyterhub
Disclosed
08.08.2024
Updated
11.10.2026 15:17

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2024-200 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-9x4q-3gxw-849f - CC BY 4.0

Vulnerability history: jupyterhub

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
8
First → latest
04.2019 08.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 2
  • Medium 6

Disclosures per year

  1. 2019: 1
  2. 2020: 0
  3. 2021: 2
  4. 2022: 0
  5. 2023: 0
  6. 2024: 2
  7. 2025: 0
  8. 2026: 3
  1. Medium · 5.4 CVE-2026-40864 >= 4.1.0, < 5.4.5 5.4.5
  2. JupyterHub has a privilege escalation vulnerability with the `admin:users` scope this entry
    High · 7.2 CVE-2024-41942 < 4.1.6, >= 5.0.0, < 5.1.0 4.1.6, 5.1.0
  3. Medium · 3.5 CVE-2021-41247 >= 1.0.0, < 1.5.0 1.5.0
  4. Medium · 4.5 CVE-2020-36191 < 1.2.0b1 1.2.0b1
  5. Medium · 6.1 CVE-2019-10255 < 0.9.6 0.9.6

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.