{"id":"CVE-2024-28233","published":"2024-03-27T18:16:24Z","modified":"2024-08-15T14:46:24Z","title":"XSS in JupyterHub via Self-XSS leveraged by Cookie Tossing","vendor":"jupyterhub","product":"jupyterhub","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00329,"percentile":0.26674,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-352","name":"Cross-Site Request Forgery"},{"id":"CWE-565","name":"Reliance on Cookies without Validation and Integrity Checking"}],"references":[{"url":"https://github.com/jupyterhub/jupyterhub/security/advisories/GHSA-7r3h-4ph8-w38g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jupyterhub/jupyterhub/commit/e2798a088f5ad45340fe79cdf1386198e664f77f","tags":["x_refsource_MISC"]}],"priority":{"score":11.0,"factors":[{"name":"EPSS percentile","points":5.33},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"jupyterhub","affectedVersions":[{"vendor":"jupyterhub","product":"jupyterhub","versions":["< 4.1.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-08-15T14:36:04.067724Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"jupyterhub","vulnerableRanges":["<4.1.0"],"patched":["4.1.0"],"from":["GHSA-7r3h-4ph8-w38g","PYSEC-2026-1480"],"provenance":"source"}],"summary":{"text":"JupyterHub, the open source multi-user server for Jupyter notebooks, contains a cross-site scripting flaw that stems from a self-XSS condition combined with cookie tossing. Exploitation requires the victim to be tricked into visiting a malicious subdomain, and the affected configurations are single-origin deployments and deployments where user-controlled applications run on subdomains or peer subdomains of the Hub or a single-user server, in which case the attacker could reach the JupyterHub API and a user's single-user server with the victim's session.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:55:07Z"},"euvd":{"id":"EUVD-2024-0861","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-jupyterhub-cve-2021-41247","parents":[{"from":"CVE-2021-41247","to":"CVE-2024-28233","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["jupyterhub/services/auth.py","jupyterhub/singleuser/mixins.py"],"commits":["https://github.com/jupyterhub/jupyterhub/commit/5ac9e7f73a6e1020ffddc40321fc53336829fe27","https://github.com/jupyterhub/jupyterhub/commit/e2798a088f5ad45340fe79cdf1386198e664f77f"],"basis":"shared function","functions":["raise_on_redirect"]}]}],"children":[{"from":"CVE-2024-28233","to":"CVE-2026-40864","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["jupyterhub/_xsrf_utils.py"],"commits":["https://github.com/jupyterhub/jupyterhub/commit/e2798a088f5ad45340fe79cdf1386198e664f77f","https://github.com/jupyterhub/jupyterhub/commit/9c5ec277d3cda5a59de2d8c8117efa77bd941127"],"basis":"rarely changed file"}]},{"from":"CVE-2024-28233","to":"CVE-2026-54338","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["jupyterhub/handlers/base.py"],"commits":["https://github.com/jupyterhub/jupyterhub/commit/e2798a088f5ad45340fe79cdf1386198e664f77f","https://github.com/jupyterhub/jupyterhub/commit/d6dc595f84b7509969686da31d87d6d69e7fce0a"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2019-10255","published":"2019-03-28","fixed":"0.9.6","kev":false},{"cve":"CVE-2020-36191","published":"2021-01-13","fixed":"1.2.0b1","kev":false},{"cve":"CVE-2021-41247","published":"2021-11-04","fixed":"1.5.0","kev":false},{"cve":"CVE-2024-28233","published":"2024-03-27","fixed":"4.1.0","kev":false},{"cve":"CVE-2024-41942","published":"2024-08-08","fixed":"5.1.0","kev":false,"link":{"from":"CVE-2024-28233","to":"CVE-2024-41942","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:jupyterhub","fromFixed":"4.1.0","toFixed":"4.1.6","daysApart":134}]}},{"cve":"CVE-2026-33709","published":"2026-04-03","fixed":"5.4.4","kev":false},{"cve":"CVE-2026-40864","published":"2026-05-22","fixed":"5.4.5","kev":false}],"package":"PyPI:jupyterhub"}}