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

High 8.1 Published Updated

Attackers can execute XSS via cookie tossing to gain full API access and take over user sessions in specific JupyterHub deployments.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-28233?

CVE-2024-28233 is a high-severity cross-site scripting vulnerability in jupyterhub, published on 27 Mar 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-79, CWE-565, CWE-352

Which versions are affected by CVE-2024-28233?

4 open source packages ship an affected version, including jupyterhub. It affects 1 product.

PackageAffectedFixed in
jupyterhub BitnamiAll versions4.1.0
jupyterhub PyPIAll versions4.1.0
jupyterhub PyPIAll versions4.1.0
jupyterhub PyPIAll versions4.1.0

Products include Jupyter Jupyterhub.

How do I fix CVE-2024-28233?

Upgrade jupyterhub to 4.1.0 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2024-28233 being exploited?

There is no known exploitation of CVE-2024-28233 in the wild and no public exploit code.

Sources

Also known as BIT-jupyterhub-2024-28233, DEBIAN-CVE-2024-28233, GHSA-7r3h-4ph8-w38g, PYSEC-2026-1480, UBUNTU-CVE-2024-28233.

Is CVE-2024-28233 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free