{"id":"CVE-2024-28179","published":"2024-03-20T19:54:38Z","modified":"2024-08-02T00:48:49Z","title":"Jupyter Server Proxy's Websocket Proxying does not require authentication","vendor":"jupyterhub","product":"jupyter-server-proxy","tier":"tail","description":{"text":"Jupyter Server Proxy allows users to run arbitrary external processes alongside their Jupyter notebook servers and provides authenticated web access. Prior to versions 3.2.3 and 4.1.1, Jupyter Server Proxy did not check user authentication appropriately when proxying websockets, allowing unauthenticated access to anyone who had network access to the Jupyter server endpoint. This vulnerability can allow unauthenticated remote access to any websocket endpoint set up to be accessible via Jupyter Server Proxy. In many cases, this leads to remote unauthenticated arbitrary code execution, due to how affected instances use websockets. The websocket endpoints exposed by `jupyter_server` itself is not affected. Projects that do not rely on websockets are also not affected. Versions 3.2.3 and 4.1.1 contain a fix for this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01596,"percentile":0.76074,"provenance":"source"},"cwes":[{"id":"CWE-306","name":"Missing Authentication for Critical Functionality"}],"references":[{"url":"https://github.com/jupyterhub/jupyter-server-proxy/security/advisories/GHSA-w3vc-fx9p-wp4v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jupyterhub/jupyter-server-proxy/commit/764e499f61a87641916a7a427d4c4b1ac3f321a9","tags":["x_refsource_MISC"]},{"url":"https://github.com/jupyterhub/jupyter-server-proxy/commit/bead903b7c0354b6efd8b4cde94b89afab653e03","tags":["x_refsource_MISC"]},{"url":"https://github.com/jupyterhub/jupyter-server-proxy/blob/9b624c4d9507176334b46a85d94a4aa3bcd29bed/jupyter_server_proxy/handlers.py#L433","tags":["x_refsource_MISC"]}],"priority":{"score":21.6,"factors":[{"name":"EPSS percentile","points":15.21},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"jupyterhub","affectedVersions":[{"vendor":"jupyterhub","product":"jupyter-server-proxy","versions":[">= 4.0.0, < 4.1.1","< 3.2.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-07-16T00:13:55.892207Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"jupyter-server-proxy","vulnerableRanges":[">=4.0.0, <4.1.1","<3.2.3"],"patched":["4.1.1","3.2.3"],"from":["GHSA-w3vc-fx9p-wp4v","PYSEC-2024-234"],"provenance":"source"}],"summary":{"text":"The flaw is in the websocket proxying component of jupyter-server-proxy, the vendor jupyterhub's extension that lets users run external processes alongside Jupyter notebook servers and reach them through the web. Because the component fails to properly check user authentication when proxying websockets, an attacker with network access to the Jupyter server endpoint can reach any websocket endpoint exposed through it without authenticating, which in many deployments can lead to unauthenticated remote code execution, though the websocket endpoints of jupyter_server itself are not affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:16:16Z"},"euvd":{"id":"EUVD-2024-1020","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-jupyterhub-jupyter-server-proxy-cve-2022-21697","parents":[{"from":"CVE-2022-21697","to":"CVE-2024-28179","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["jupyter_server_proxy/handlers.py"],"commits":["https://github.com/jupyterhub/jupyter-server-proxy/commit/fd31930bacd12188c448c886e0783529436b99eb","https://github.com/jupyterhub/jupyter-server-proxy/commit/764e499f61a87641916a7a427d4c4b1ac3f321a9","https://github.com/jupyterhub/jupyter-server-proxy/commit/bead903b7c0354b6efd8b4cde94b89afab653e03"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2024-28179","to":"CVE-2024-35225","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:jupyter-server-proxy","fromFixed":"3.2.3","toFixed":"3.2.4","daysApart":83},{"kind":"version-step","provenance":"source","package":"PyPI:jupyter-server-proxy","fromFixed":"4.1.1","toFixed":"4.2.0","daysApart":83},{"kind":"same-code","provenance":"machine","files":["jupyter_server_proxy/handlers.py"],"commits":["https://github.com/jupyterhub/jupyter-server-proxy/commit/764e499f61a87641916a7a427d4c4b1ac3f321a9","https://github.com/jupyterhub/jupyter-server-proxy/commit/bead903b7c0354b6efd8b4cde94b89afab653e03","https://github.com/jupyterhub/jupyter-server-proxy/commit/7abc9dc5bbb0b4b440548a5375261b8b8192fc22","https://github.com/jupyterhub/jupyter-server-proxy/commit/ff78128087e73fb9d0909e1366f8bf051e8ea878"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2022-21697","published":"2022-01-25","fixed":"3.2.1","kev":false},{"cve":"CVE-2024-28179","published":"2024-03-20","fixed":"4.1.1","kev":false},{"cve":"CVE-2024-35225","published":"2024-06-11","fixed":"4.2.0","kev":false}],"package":"PyPI:jupyter-server-proxy"}}