CVE-2024-35225 Jupyter Server Proxy has a reflected XSS issue in host parameter
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
Description
Jupyter Server Proxy allows users to run arbitrary external processes alongside their notebook server and provide authenticated web access to them. Versions of 3.x prior to 3.2.4 and 4.x prior to 4.2.0 have a reflected cross-site scripting (XSS) issue. The /proxy endpoint accepts a host path segment in the format /proxy/<host>. When this endpoint is called with an invalid host value, jupyter-server-proxy replies with a response that includes the value of host, without sanitization [2]. A third-party actor can leverage this by sending a phishing link with an invalid host value containing custom JavaScript to a user. When the user clicks this phishing link, the browser renders the response of GET /proxy/<host>, which runs the custom JavaScript contained in host set by the actor. As any arbitrary JavaScript can be run after the user clicks on a phishing link, this issue permits extensive access to the user's JupyterLab instance for an actor. Patches are included in versions 4.2.0 and 3.2.4. As a workaround, server operators who are unable to upgrade can disable the jupyter-server-proxy extension.
Upgrade path
4 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| jupyter server proxy | < 3.2.4; < 4.2.0; = 4.0.0; >= 3.0.0, < 3.2.4 +1 more | 3.2.4, 4.2.0 | Fixed |
| pypi jupyter-server-proxy(PyPI) | = 3.0.0; = 3.0.1; = 3.0.2; = 3.1.0 +48 more | 3.2.4, 4.2.0 | Fixed |
| jupyterhub jupyter server proxy | = 3.0.0 | No fix listed | Versions listed |
| jupyterhub jupyter-server-proxy | = >= 3.0.0, < 3.2.4; = >= 4.0.0, < 4.2.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi jupyter-server-proxy(PyPI) | >= 3.0.0, < 3.2.4 | 3.2.4 |
| pypi jupyter-server-proxy(PyPI) | = 3.0.0 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = 3.0.1 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = 3.0.2 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = 3.1.0 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = 3.2.0 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = 3.2.1 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = 3.2.2 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = 3.2.3 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | >= 4.0.0, < 4.2.0 | 4.2.0 |
| pypi jupyter-server-proxy(PyPI) | = 4.0.0 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = 4.1.0 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = 4.1.1 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = 4.1.2 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | >= 4.1.2, < 4.2.0 | 4.2.0 |
| pypi jupyter-server-proxy(PyPI) | = v3.2.3 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v4.1.2 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v4.1.1 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v3.2.2 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v4.1.0 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v4.0.0 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v3.2.1 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v3.2.0 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v3.0.2 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v3.0.1 | No fix listed |
Show 35 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi jupyter-server-proxy(PyPI) | = v3.0.0 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v3.0.0-rc.1 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v1.6.0 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v1.5.3 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v1.5.2 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v1.5.0 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v1.4.0 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v1.3.2 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v1.3.1 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v1.3.0 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v1.1.0 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v1.0.1 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v0.8.8 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v0.8.7 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v0.8.6 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v0.8.5 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v0.8.4 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v0.8.3 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v0.8.2 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v0.8.1 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v0.8.0 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v0.7.0 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v0.5.0 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v0.3.2 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v0.3.1 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v0.3.0 | No fix listed |
| pypi jupyter-server-proxy(PyPI) | = v0.2.0 | No fix listed |
| jupyterhub jupyter-server-proxy | = >= 3.0.0, < 3.2.4 | No fix listed |
| jupyterhub jupyter-server-proxy | = >= 4.0.0, < 4.2.0 | No fix listed |
| jupyterhub jupyter server proxy | = 3.0.0 | No fix listed |
| jupyter server proxy | < 3.2.4 | 3.2.4 |
| jupyter server proxy | = 4.0.0 | No fix listed |
| jupyter server proxy | < 4.2.0 | 4.2.0 |
| jupyter server proxy | >= 3.0.0, < 3.2.4 | 3.2.4 |
| jupyter server proxy | >= 4.1.2, < 4.2.0 | 4.2.0 |
References
- https://github.com/jupyterhub/jupyter-server-proxy/security/advisories/GHSA-fvcq-4x64-hqxr vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/jupyterhub/jupyter-server-proxy/commit/7abc9dc5bbb0b4b440548a5375261b8b8192fc22 patch
- https://github.com/jupyterhub/jupyter-server-proxy/commit/ff78128087e73fb9d0909e1366f8bf051e8ea878 patch
- github.com product
- https://github.com/jupyterhub/jupyter-server-proxy/blob/62a290f08750f7ae55a0c29ca339c9a39a7b2a7b/jupyter_server_proxy/handlers.py#L328 product
- github.com
- github.com vendor-advisory