{"id":"CVE-2026-40864","aliases":["CVE-2026-40864","GHSA-m68r-v472-jgq9","BIT-JUPYTERHUB-2026-40864","PYSEC-2026-2189"],"related":[],"kind":"vulnerability","state":"published","title":"JupyterHub: Cross-origin form POSTs bypass XSRF","summary":"JupyterHub is software that allows users to create a multi-user server for Jupyter notebooks. In versions 4.1.0 through 5.4.4, XSRF protection (updated in 4.1.0) inappropriately treated requests with Sec-Fetch-Mode: no-cors as same-origin requests, bypassing XSRF checks. The JSON API is not affected, only HTTP form endpoints, such as /hub/spawn and /hub/accept-share, meaning attackers could trigger server spawn (but not access the server) and if the attacker is a JupyterHub user permitted to share access to their server, cause a user to accept a share and have access to the attacker's server. This issue has been fixed in version 5.4.5. If developers are unable to immediately upgrade, they can temporarily mitigate this issue by dropping requests to JupyterHub with Sec-Fetch-Mode: no-cors if they are using a reverse proxy.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"JupyterHub is software that allows users to create a multi-user server for Jupyter notebooks. In versions 4.1.0 through 5.4.4, XSRF protection (updated in 4.1.0) inappropriately treated requests with Sec-Fetch-Mode: no-cors as same-origin requests, bypassing XSRF checks. The JSON API is not affected, only HTTP form endpoints, such as /hub/spawn and /hub/accept-share, meaning attackers could trigger server spawn (but not access the server) and if the attacker is a JupyterHub user permitted to share access to their server, cause a user to accept a share and have access to the attacker's server. This issue has been fixed in version 5.4.5. If developers are unable to immediately upgrade, they can temporarily mitigate this issue by dropping requests to JupyterHub with Sec-Fetch-Mode: no-cors if they are using a reverse proxy.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nJupyterHub's XSRF protection (updated in 4.1.0) inappropriately treated requests with `Sec-Fetch-Mode: no-cors` as same-origin requests, which they are not, bypassing XSRF checks. The JSON API is not affected, only HTTP form endpoints, such as `/hub/spawn` and `/hub/accept-share`, meaning attackers could trigger server spawn (but not access the server) and if the attacker is a JupyterHub user permitted to share access to their server, cause a user to accept a share and have access to the attacker's server.\n\n## Patches\n\nUpgrade to JupyterHub 5.4.5.\n\n## Mitigations\n\nIf a reverse proxy is in use, drop requests to JupyterHub with `Sec-Fetch-Mode: no-cors`.","format":"markdown","source":"ghsa"},{"lang":"es","text":"JupyterHub es un software que permite a los usuarios crear un servidor multiusuario para notebooks de Jupyter. En las versiones 4.1.0 a 5.4.4, la protección XSRF (actualizada en 4.1.0) trató de forma inapropiada las solicitudes con Sec-Fetch-Mode: no-cors como solicitudes del mismo origen, eludiendo las comprobaciones XSRF. La API JSON no se ve afectada, solo los puntos finales de formulario HTTP, como /hub/spawn y /hub/accept-share, lo que significa que los atacantes podrían activar la creación de un servidor (pero no acceder al servidor) y si el atacante es un usuario de JupyterHub con permiso para compartir el acceso a su servidor, provocar que un usuario acepte un recurso compartido y tenga acceso al servidor del atacante. Este problema ha sido solucionado en la versión 5.4.5. Si los desarrolladores no pueden actualizar de inmediato, pueden mitigar temporalmente este problema descartando las solicitudes a JupyterHub con Sec-Fetch-Mode: no-cors si están utilizando un proxy inverso.","source":"nvd"}],"published":"2026-05-05T18:10:58.000Z","modified":"2026-09-10T03:51:06.307Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-352"],"affected":[{"ranges":[{"version":">= 4.1.0, < 5.4.5","status":"affected"}],"vendor":"jupyterhub","product":"jupyterhub","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.1.0","status":"affected","fixed":"5.4.5"}],"ecosystem":"PyPI","package":"jupyterhub","purl":"pkg:pypi/jupyterhub","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.1.0","fixed":"5.4.5"}],"vendor":"jupyter","product":"jupyterhub","cpe":"cpe:2.3:a:jupyter:jupyterhub:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"4.1.0","status":"affected","fixed":"5.4.5"}],"ecosystem":"PyPI","package":"jupyterhub","purl":"pkg:pypi/jupyterhub","source":"pysec"},{"ranges":[{"type":"semver","introduced":"4.1.0","status":"affected","fixed":"5.4.5"}],"ecosystem":"Bitnami","package":"jupyterhub","purl":"pkg:bitnami/jupyterhub","source":"bitnami"}],"references":[{"url":"https://github.com/jupyterhub/jupyterhub/security/advisories/GHSA-m68r-v472-jgq9","tags":["advisory","mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/jupyterhub/jupyterhub/commit/9c5ec277d3cda5a59de2d8c8117efa77bd941127","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40864","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/jupyterhub/jupyterhub","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-26T13:13:45.531Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40864","url":"https://www.cve.org/CVERecord?id=CVE-2026-40864","licence":"CVE Terms of Use","modified":"2026-05-26T13:13:51.723Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m68r-v472-jgq9","url":"https://github.com/advisories/GHSA-m68r-v472-jgq9","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:06.307Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40864","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40864","licence":"Public domain","modified":"2026-07-23T11:10:00.120Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2189","url":"https://osv.dev/vulnerability/PYSEC-2026-2189","licence":"CC-BY-4.0","modified":"2026-07-13T07:26:16.328Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-JUPYTERHUB-2026-40864","url":"https://osv.dev/vulnerability/BIT-JUPYTERHUB-2026-40864","licence":"Apache-2.0","modified":"2026-09-08T08:48:23.854Z"}],"updatedAt":"2026-11-25T22:59:22.209Z","epss":{"score":0.00146,"percentile":0.04037,"date":"2026-12-01T12:00:22.000Z"}}