CVE-2024-28233: XSS in JupyterHub via Self-XSS leveraged by Cookie Tossing

Published Mar 27, 2024
·
Updated

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.subdomainhost = "https://mydomain.example.org" - set c.JupyterHub.cookiehostprefixenabled = 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.subdomainhost = "https://mydomain.example.org"

Other sources

JupyterHub is an open source multi-user server for Jupyter notebooks. 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 full access to JupyterHub API and user's single-user server. The affected configurations are single-origin JupyterHub deployments and JupyterHub deployments with user-controlled applications running on subdomains or peer subdomains of either the Hub or a single-user server. This vulnerability is fixed in 4.1.0.

MITRE

Affected Software

2 affected componentsFixes available
pip/jupyterhub<4.1.0
4.1.0
jupyter JupyterHub<4.1.0

Event History

Mar 27, 2024
CVE Published
via MITRE·06:16 PM
Data Sourced
via MITRE·06:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
RemedyAffected Software
Mar 28, 2024
Advisory Published
via GitHub·05:08 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-28233?

CVE-2024-28233 is classified as a high severity vulnerability due to its potential impact on single-origin JupyterHub deployments.

2

How do I fix CVE-2024-28233?

To remediate CVE-2024-28233, upgrade JupyterHub to version 4.1.0 or later using pip.

3

What systems are affected by CVE-2024-28233?

CVE-2024-28233 affects single-origin JupyterHub deployments and those with user-controlled applications on subdomains.

4

What is the exploit mechanism for CVE-2024-28233?

CVE-2024-28233 can be exploited by tricking users into visiting a malicious subdomain.

5

Is CVE-2024-28233 patched in previous versions of JupyterHub?

No, CVE-2024-28233 is not patched in versions prior to 4.1.0, requiring an upgrade to fix the vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203