CVE-2024-35225: jupyter jupyter_server_proxy Cross-site Scripting
Vulnerability summary
CVE-2024-35225 is a critical (CVSS 9.7) Cross-site Scripting vulnerability in jupyter jupyter_server_proxy. EPSS estimates a 0.45% chance of exploitation in the next 30 days, higher than 37.4% of scored vulnerabilities.
Timeline
- 11-06-2024PublishedVulnerability first disclosed.
- 02-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · PypiEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NDiffers
- NVDNIST6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NDiffers
EPSS trend
Probability
0.45%
Chance of exploitation in the next 30 days
Percentile
37%
Versus all other CVEs
30-day change
0.00 pp
From 0.45% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-79Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
- CWE-116Improper Encoding or Escaping of OutputThe product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.
Affected systems
Jupyter1 product
- jupyter_server_proxy≥ 3.0.0, < 3.2.4 | ≥ 4.1.2, < 4.2.0
Jupyterhub1 product
- jupyter-server-proxy≥ 3.0.0, < 3.2.4 | ≥ 4.0.0, < 4.2.0
PyPI1 product
- jupyter-server-proxy≥ 3.0.0, < 3.2.4 | ≥ 4.0.0, < 4.2.0 | < ff78128087e73fb9d0909e1366f8bf051e8ea878 | ≥ 4.1.2, < 4.2.0
3 vendors · 3 products
References
8 links- github.com/jupyterhub/jupyter-server-proxy/security/advisories/GHSA-fvcq-4x64-hqxrX Refsource CONFIRMWEBAdvisoryVendor Advisory
- github.com/jupyterhub/jupyter-server-proxy/commit/7abc9dc5bbb0b4b440548a5375261b8b8192fc22X Refsource MISCWEBFIXPatch
- github.com/jupyterhub/jupyter-server-proxy/commit/ff78128087e73fb9d0909e1366f8bf051e8ea878X Refsource MISCWEBFIXPatch