JupyterHub has cross-origin form POSTs bypass XSRF (CWE-352)
CVE-2026-40864 · GHSA-m68r-v472-jgq9 · published 2026-05-05 · updated 2026-06-08
- Severity
- Medium
- CVSS score
- 5.4
- Chance of exploitation (EPSS)
- 0.15%
- Fixed in
- 5.4.5
- Exploitation No known exploitation
- Automatable No
- Technical impact Partial
- CISA SSVC
JupyterHub'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.
Upgrade jupyterhub to 5.4.5 or later.
Upgrade to JupyterHub 5.4.5.
If a reverse proxy is in use, drop requests to JupyterHub with Sec-Fetch-Mode: no-cors.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| jupyterhub | PyPI | >= 4.1.0, < 5.4.5 | 5.4.5 |
- CriticalMLflow: Unauthenticated full-read SSRF in webhook delivery: _validate_webhook_url bypassed via unvalidated HTTP redirects (and DNS rebindingmlflowExploited
- Critical@zereight/mcp-gitlab Vulnerable to Server-Side Request Forgery@zereight/mcp-gitlab
- CriticalSSRF + LLM API key exfiltration via user-controlled basepath / baseUrl in 8 chat-model nodesflowise, flowise-components
- CriticalLocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery URLsgithub.com/mudler/LocalAI
- CriticalFastMCP OpenAPI Provider has an SSRF & Path Traversal Vulnerabilityfastmcp
- CriticalBentoML SSRF Vulnerability in File Upload Processingbentoml
- HighJupyterHub has a privilege escalation vulnerability with the `admin:users` scopejupyterhub, jupyterhub
- HighCross site scripting (XSS) in JupyterHub via Self-XSS leveraged by Cookie Tossingjupyterhub
- MediumJupyterHub has Unauthenticated Denial of Service via Unbounded Username Logging on Failed Loginjupyterhub
- MediumJupyterHub has an Open Redirect Vulnerabilityjupyterhub
- MediumCross-Site Request Forgery in JupyterHubjupyterhub
- Mediumincomplete JupyterHub logout with simultaneous JupyterLab sessionsjupyterhub
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.