Skip to main content
Vulnerability Database/CVE-2026-108752

CVE-2026-108752: JupyterHub Auth Bypass Vulnerability

CVE-2026-108752 is an authentication bypass flaw in JupyterHub that allows attackers to overwrite OAuth clients through identifier collision. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-108752 Overview

CVE-2026-108752 is an identifier collision vulnerability in JupyterHub through version 6.0.1. The flaw lets authenticated users overwrite another user's named-server OAuth client by registering a hyphenated username. An attacker holding a username like alice-prod can overwrite the OAuth client assigned to the user alice running a named server called prod. Stopping the attacker's own server then revokes tokens and breaks OAuth login for the victim's server. The weakness maps to [CWE-694: Use of Multiple Resources with Duplicate Identifier]. JupyterHub is a widely deployed multi-user platform for shared Jupyter notebook environments in research, education, and data science teams.

Critical Impact

Authenticated attackers can hijack or disrupt another user's named-server OAuth client, breaking logins and revoking tokens for the targeted server.

Affected Products

  • JupyterHub versions through 6.0.1
  • Deployments exposing named-server functionality to multiple authenticated users
  • Multi-tenant JupyterHub installations in research, education, and enterprise environments

Discovery Timeline

  • 2026-10-11 - CVE-2026-108752 published to NVD
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-108752

Vulnerability Analysis

JupyterHub generates OAuth client identifiers for named servers by concatenating the username and server name with a hyphen separator. Because hyphens are legal characters inside usernames, two distinct user-plus-server combinations can produce the same client identifier string. A user named alice-prod with a default server collides with user alice running a server named prod. Both resolve to the same OAuth client record in the datastore. When the attacker's server is created or stopped, JupyterHub overwrites or deletes the client registration that legitimately belongs to the victim. The victim's named-server OAuth tokens become invalid, and subsequent OAuth logins to that server fail.

Root Cause

The root cause is improper delimiter escaping during identifier construction, categorized under [CWE-694]. The client ID builder joins the username and server name with a hyphen without encoding hyphens inside either component. This produces a non-injective mapping: multiple logical identities map to one physical client ID. Relevant code paths exist in jupyterhub/oauth/provider.py and jupyterhub/user.py, where client IDs are generated and persisted.

Attack Vector

Exploitation requires an authenticated account on the target JupyterHub instance. The attacker registers or already holds a username containing a hyphen that aligns with a victim's username-servername pattern. By starting a server, the attacker causes creation of an OAuth client whose ID collides with the victim's existing client, overwriting its secret and redirect URI metadata. Stopping the attacker's server removes the shared client record, revoking the victim's active OAuth tokens. The impact is limited to integrity and availability of the targeted named server's OAuth state; no code execution or confidentiality breach is achieved.

For technical specifics, see the HackMD OAuth Client ID Analysis and the VulnCheck JupyterHub Advisory.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-108752

Indicators of Compromise

  • Unexpected OAuth client overwrites in the JupyterHub database where client_id values are reused across different owning users.
  • JupyterHub logs showing OAuth token validation failures or forced re-authentication for named servers belonging to users with short names.
  • Account provisioning events creating usernames containing hyphens that mirror existing username-servername combinations.
  • Named-server start or stop events from one account correlating in time with OAuth session failures on another account.

Detection Strategies

  • Audit the JupyterHub users and OAuth client tables for client IDs that could be produced by more than one (user, server_name) pair.
  • Alert on new user registrations whose usernames contain a hyphen matching the pattern of existing usernames plus a named-server suffix.
  • Correlate server lifecycle events (spawn, stop) with OAuth client write operations to detect collision-driven overwrites.

Monitoring Recommendations

  • Enable verbose logging on the JupyterHub OAuth provider and ship events to a central SIEM for pattern analysis.
  • Monitor failed OAuth callbacks and sudden token revocation events for named servers.
  • Track administrative account creation events and flag usernames containing hyphens for manual review in multi-tenant deployments.

How to Mitigate CVE-2026-108752

Immediate Actions Required

  • Review the JupyterHub user directory and remove or rename accounts whose usernames contain hyphens that could collide with other users' named-server identifiers.
  • Restrict user self-registration until a patched release is deployed, or enforce a username policy that disallows hyphens.
  • Audit existing OAuth client records in the JupyterHub datastore and reset any that show ownership ambiguity.

Patch Information

As of the NVD last-modified date 2026-10-16, the advisory lists all JupyterHub releases through 6.0.1 as affected. Administrators should track the JupyterHub repository for a fixed release and upgrade once available. The expected fix replaces the hyphen delimiter with an unambiguous separator or URL-encodes identifier components so that (user, server_name) tuples map one-to-one to client IDs.

Workarounds

  • Enforce a username validation policy that rejects hyphens, preventing construction of colliding client IDs.
  • Disable the named-servers feature if it is not required by the deployment, eliminating the collision surface.
  • Limit JupyterHub access to a known, vetted user population and avoid open registration until patched.
bash
# Example JupyterHub config to reject hyphenated usernames
# jupyterhub_config.py
import re
c.Authenticator.username_pattern = r'^[a-zA-Z0-9_]+$'

# Optional: disable named servers until patched
c.JupyterHub.allow_named_servers = False

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.