Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. jupyterhub
  4. ›
  5. CVE-2024-28233

CVE-2024-28233: Cross site scripting (XSS) in JupyterHub via Self-XSS leveraged by Cookie Tossing

March 28, 2024

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.

References

  • github.com/advisories/GHSA-7r3h-4ph8-w38g
  • github.com/jupyterhub/jupyterhub
  • github.com/jupyterhub/jupyterhub/commit/e2798a088f5ad45340fe79cdf1386198e664f77f
  • github.com/jupyterhub/jupyterhub/security/advisories/GHSA-7r3h-4ph8-w38g
  • nvd.nist.gov/vuln/detail/CVE-2024-28233

Code Behaviors & Features

Detect and mitigate CVE-2024-28233 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 4.1.0

Fixed versions

  • 4.1.0

Solution

Upgrade to version 4.1.0 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-352: Cross-Site Request Forgery (CSRF)
  • CWE-565: Reliance on Cookies without Validation and Integrity Checking
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

pypi/jupyterhub/CVE-2024-28233.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:33 +0000.