Loading advisory.
Loading advisory.
Cross site scripting (XSS) in JupyterHub via Self-XSS leveraged by Cookie Tossing
Affected configurations:
Published 2024-03-27 18:16 UTC · Modified 2026-09-10 03:50 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| jupyterhub | PyPI | < 4.1.0 versions 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.4.1, 0.5.0, 0.6.0, 0.6.1, 0.7.0, 0.7.0b1, 0.7.1, 0.7.2, 0.8.0, 0.8.0b1, 0.8.0b2, 0.8.0b3, 0.8.0b4, 0.8.0b5, 0.8.0rc1, 0.8.0rc2 and 54 more | 4.1.0 | pip install --upgrade 'jupyterhub>=4.1.0' |
Affected configurations:
Single-origin JupyterHub deployments
JupyterHub deployments with user-controlled applications running on subdomains or peer subdomains of either the Hub or a single-user server.
By tricking a user into visiting a malicious subdomain, the attacker can achieve an XSS directly affecting the former's session. More precisely, in the context of JupyterHub, this XSS could achieve the following:
Full access to JupyterHub API and user's single-user server, e.g.
Create and exfiltrate an API Token
Exfiltrate all files hosted on the user's single-user server: notebooks, images, etc.
Install malicious extensions. They can be used as a backdoor to silently regain access to victim's session anytime.
To prevent cookie-tossing:
Upgrade to JupyterHub 4.1 (both hub and user environment)
enable per-user domains via c.JupyterHub.subdomain_host = "https://mydomain.example.org"
set c.JupyterHub.cookie_host_prefix_enabled = True to enable domain-locked cookies
or, if available (applies to earlier JupyterHub versions):
deploy jupyterhub on its own domain, not shared with any other services
enable per-user domains via c.JupyterHub.subdomain_host = "https://mydomain.example.org"
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.003 on 2026-11-24 to 0.004 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.003 | first score | v2026.06.15 |
| 2026-11-26 | 0.004 | 0.003 | v2026.06.15 |