{"schemaVersion":3,"id":"CVE-2024-35225","aliases":["GHSA-fvcq-4x64-hqxr","PYSEC-2024-236"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2024-06-11T21:45:57.596Z","modified":"2024-08-02T03:07:46.821Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.7,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.7,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":7.2,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00446,"percentile":0.37486,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00446},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00446,"percentile":0.37486}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00446,"percentile":0.37486}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"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.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output","description":"The 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.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/116.html"}],"affected":[{"vendor":"jupyter","product":"jupyter_server_proxy","name":"jupyter server proxy","label":"jupyter_server_proxy","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.0.0, < 3.2.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.1.2, < 4.2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.0.0, < 3.2.4 | ≥ 4.1.2, < 4.2.0","eol":null,"hubHref":"/vendor/jupyter/jupyter_server_proxy"},{"vendor":"jupyterhub","product":"jupyter-server-proxy","name":"jupyter-server-proxy","label":"jupyter-server-proxy","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.0.0, < 3.2.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < 4.2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.0.0, < 3.2.4 | ≥ 4.0.0, < 4.2.0","eol":null,"hubHref":"/vendor/jupyterhub/jupyter-server-proxy"},{"vendor":"PyPI","product":"jupyter-server-proxy","name":"jupyter-server-proxy","label":"jupyter-server-proxy","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/jupyter-server-proxy","purlType":"pypi","versions":[{"text":"≥ 3.0.0, < 3.2.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < 4.2.0","noFixRecorded":false,"fixedIn":null},{"text":"< ff78128087e73fb9d0909e1366f8bf051e8ea878","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.1.2, < 4.2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.0.0, < 3.2.4 | ≥ 4.0.0, < 4.2.0 | < ff78128087e73fb9d0909e1366f8bf051e8ea878 | ≥ 4.1.2, < 4.2.0","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/jupyterhub/jupyter-server-proxy/security/advisories/GHSA-fvcq-4x64-hqxr","label":"github.com/jupyterhub/jupyter-server-proxy/security/advisories/GHSA-fvcq-4x64-hqxr","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","Vendor Advisory"]},{"url":"https://github.com/jupyterhub/jupyter-server-proxy/commit/7abc9dc5bbb0b4b440548a5375261b8b8192fc22","label":"github.com/jupyterhub/jupyter-server-proxy/commit/7abc9dc5bbb0b4b440548a5375261b8b8192fc22","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch"]},{"url":"https://github.com/jupyterhub/jupyter-server-proxy/commit/ff78128087e73fb9d0909e1366f8bf051e8ea878","label":"github.com/jupyterhub/jupyter-server-proxy/commit/ff78128087e73fb9d0909e1366f8bf051e8ea878","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch"]},{"url":"https://github.com/jupyterhub/jupyter-server-proxy/blob/62a290f08750f7ae55a0c29ca339c9a39a7b2a7b/jupyter_server_proxy/handlers.py#L328","label":"github.com/jupyterhub/…","hostname":"github.com","tags":["X Refsource MISC","WEB","Product"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35225","label":"nvd.nist.gov/vuln/detail/CVE-2024-35225","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/jupyterhub/jupyter-server-proxy","label":"github.com/jupyterhub/jupyter-server-proxy","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/jupyter-server-proxy/PYSEC-2024-236.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/jupyter-server-proxy/PYSEC-2024-236.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-fvcq-4x64-hqxr","label":"github.com/advisories/GHSA-fvcq-4x64-hqxr","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-06-11T21:45:57.596Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-02T03:07:46.821Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T07:42:56.162Z","stale":false,"partial":false}}