Hoch

Cross site scripting (XSS) in JupyterHub via Self-XSS leveraged by Cookie Tossing

  • Veröffentlicht: 28.03.2024
  • Aktualisiert: 11.10.2026 15:17

Impact

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.

Patches

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"

Betroffene Software

Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.

PlattformPaketAnfällige VersionenBehoben in
Python (PyPI) jupyterhub < 4.1.0 4.1.0

Verweise

CVSS-Wert 8.1/10
CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Schwäche (CWE)
CWE-352, CWE-565, CWE-79
Plattform
Python (PyPI)
Paket
jupyterhub
Veröffentlicht
28.03.2024
Aktualisiert
11.10.2026 15:17

Quellen und Lizenzen

OSV / GitHub Advisory Database - PYSEC-2026-1480 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-7r3h-4ph8-w38g - CC BY 4.0

Schwachstellenhistorie: jupyterhub

Alle veröffentlichten Schwachstellen dieses Pakets (Python (PyPI)), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.

Einträge insgesamt
8
Erste → letzte
04.2019 08.2026
Ohne Fix
0
In Angriffen ausgenutzt
0

Verteilung nach Schweregrad

  • Hoch 2
  • Mittel 6

Veröffentlichungen pro Jahr

  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. Mittel · 5.4 CVE-2026-40864 >= 4.1.0, < 5.4.5 5.4.5
  2. Hoch · 7.2 CVE-2024-41942 < 4.1.6, >= 5.0.0, < 5.1.0 4.1.6, 5.1.0
  3. Cross site scripting (XSS) in JupyterHub via Self-XSS leveraged by Cookie Tossing dieser Eintrag
    Hoch · 8.1 CVE-2024-28233 < 4.1.0 4.1.0
  4. Mittel · 3.5 CVE-2021-41247 >= 1.0.0, < 1.5.0 1.5.0
  5. Mittel · 4.5 CVE-2020-36191 < 1.2.0b1 1.2.0b1
  6. Mittel · 6.1 CVE-2019-10255 < 0.9.6 0.9.6

Erkennen Sie Schwachstellen in Ihrer Anwendung

Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.

Anwendung verbinden
DockRay Newsletter

Anwendungssicherheit in Ihrem Postfach

Wichtige Schwachstellen, konkrete Empfehlungen und praktische Tipps für Ihre Anwendungen. Wählen Sie Ihre Technologien und verfolgen Sie, was für Ihr Projekt relevant ist.

  • Eine tägliche Zusammenfassung neuer Schwachstellen, auch kritischer.
  • Benachrichtigungen über wichtige Updates.
  • Praktische Tipps zur Sicherheit und Überwachung von Anwendungen.

Leer lassen, um Meldungen zu allen Technologien zu erhalten.

Kostenlos anmelden. In jeder E-Mail mit einem Klick abmelden.