# CVE-2024-35225: Jupyter Server Proxy has a reflected XSS issue in host parameter

- Severity: Critical 9.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 40% of CVEs (2026-12-01)
- Published: 2024-06-11T21:12:47.000Z
- Modified: 2026-06-17T07:34:34.693Z
- Also known as: GHSA-fvcq-4x64-hqxr, PYSEC-2024-236
- Weaknesses: CWE-79, CWE-116
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- jupyterhub jupyter-server-proxy: >= 3.0.0, < 3.2.4; >= 4.0.0, < 4.2.0
- jupyterhub jupyter_server_proxy: 3.0.0
- jupyter jupyter_server_proxy: before 3.2.4; 4.0.0; before 4.2.0; from 3.0.0 before 3.2.4; from 4.1.2 before 4.2.0
- jupyter-server-proxy (PyPI): from 3.0.0 before 3.2.4; from 4.0.0 before 4.2.0; before 7abc9dc5bbb0b4b440548a5375261b8b8192fc22; before ff78128087e73fb9d0909e1366f8bf051e8ea878; from 4.1.2 before 4.2.0

## Every score

- GitHub_M: CVSS:3.1 9.7 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/jupyterhub/jupyter-server-proxy/security/advisories/GHSA-fvcq-4x64-hqxr> (advisory, vendor-advisory, web)
- <https://github.com/jupyterhub/jupyter-server-proxy/commit/7abc9dc5bbb0b4b440548a5375261b8b8192fc22> (fix, patch, web)
- <https://github.com/jupyterhub/jupyter-server-proxy/commit/ff78128087e73fb9d0909e1366f8bf051e8ea878> (fix, patch, web)
- <https://github.com/jupyterhub/jupyter-server-proxy/blob/62a290f08750f7ae55a0c29ca339c9a39a7b2a7b/jupyter_server_proxy/handlers.py#L328> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-35225> (advisory)
- <https://github.com/jupyterhub/jupyter-server-proxy> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/jupyter-server-proxy/PYSEC-2024-236.yaml> (web)
- <https://github.com/advisories/GHSA-fvcq-4x64-hqxr> (advisory)

## Sources

- CVE List: [CVE-2024-35225](https://www.cve.org/CVERecord?id=CVE-2024-35225), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-fvcq-4x64-hqxr](https://github.com/advisories/GHSA-fvcq-4x64-hqxr), CC-BY-4.0, modified 2026-06-10
- NVD: [CVE-2024-35225](https://nvd.nist.gov/vuln/detail/CVE-2024-35225), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-236](https://osv.dev/vulnerability/PYSEC-2024-236), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2024-35225 · Whole record: https://cve.day/CVE-2024-35225.json · Rebuilt by cve.day 2026-11-25T22:58:41.728Z
