Cross site scripting (XSS) in JupyterHub via Self-XSS leveraged by Cookie Tossing
CVE-2024-28233 · GHSA-7r3h-4ph8-w38g · published 2024-03-28
- Severity
- High
- CVSS score
- 8.1
- Chance of exploitation (EPSS)
- 0.33%
- Fixed in
- 4.1.0
- Exploitation No known exploitation
- Automatable No
- Technical impact Total
- CISA SSVC
Affected configurations: Single-origin JupyterHub deployments JupyterHub deployments with user-controlled applications running on subdomains or peer subdomains of either the Hub or a single-user server. By tricking a user into visiting a malicious subdomain, the attacker can achieve an XSS directly affecting the former's session. More precisely, in the context of JupyterHub, this XSS could achieve the following: Full access to JupyterHub API and user's single-user server, e.g. Create and exfiltrate an API Token Exfiltrate all files hosted on the user's single-user server: notebooks, images, etc. Install malicious extensions.
Upgrade jupyterhub to 4.1.0 or later.
To prevent cookie-tossing: Upgrade to JupyterHub 4.1 (both hub and user environment) enable per-user domains via to enable domain-locked cookies or, if available (applies to earlier JupyterHub versions): deploy jupyterhub on its own domain, not shared with any other services enable per-user domains via
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| jupyterhub | PyPI | < 4.1.0 | 4.1.0 |
- 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
- MediumJupyterHub has Unauthenticated Denial of Service via Unbounded Username Logging on Failed Loginjupyterhub
- MediumJupyterHub has cross-origin form POSTs bypass XSRF (CWE-352)jupyterhub
- 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.