Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessRegister domain matching trusted prefix
-
DeliveryHost malicious web app with CORS requests
-
ExploitVictim visits attacker site with active Jupyter session
-
ExecutionSend crafted Origin header bypassing re.match() validation
-
PersistAccess notebook API endpoints
-
ImpactExfiltrate data or execute code in kernel
Vulnerability Assessment
| Weakness |
CWE
|
| Exploitation Conditions | Requires Jupyter Server <= 2.17.0 deployed with the allow_origin_pat configuration option explicitly set (this is NOT a default configuration - most Jupyter deployments do not enable CORS origin patterns). The attacker must control a domain name that begins with the trusted pattern followed by additional characters, requiring either domain registration or DNS compromise. Exploitation occurs when an authenticated user with an active Jupyter session visits the attacker-controlled domain in their browser, allowing cross-origin JavaScript execution. The vulnerability does NOT affect default Jupyter Server installations where allow_origin_pat is unset or where allow_origin (exact string matching) is used instead. Network access to the victim's Jupyter Server is required (typically HTTP/HTTPS on ports 8888 or custom), but can be from any origin due to the CORS bypass. No special user interaction beyond visiting a malicious website is needed once the session exists. |
| Impact | Real-world risk is MODERATE despite the absence of CVSS scoring. The vulnerability requires specific deployment conditions: Jupyter Server must be configured with allow_origin_pat (not default behavior for most installations), and the attacker must control or register a domain matching the trusted prefix plus arbitrary suffix. Attack complexity is LOW once conditions are met - no authentication required, purely client-side exploitation via crafted Origin headers. The technical impact is information disclosure (accessing notebook contents, execution history, or API responses) rather than direct code execution, limiting immediate severity. EPSS and KEV data are unavailable, suggesting no widespread exploitation campaigns. However, Jupyter notebooks often contain sensitive research data, credentials, and API keys, making unauthorized access significant for targeted attacks against research institutions or data science teams. The availability of a clean patch (2.18.0) and simple workaround (regex anchoring) reduces residual risk for organizations that can deploy updates. Priority should be MEDIUM for environments using custom CORS configurations, LOW for default deployments where allow_origin_pat is not configured. |
| Exploit ScenarioDerived | An attacker identifies a target organization running Jupyter Server 2.17.0 configured with allow_origin_pat set to 'research\.university\.edu' to permit the institution's web portal to access notebook APIs. The attacker registers the domain 'research.university.edu.malicious-analytics.com' and hosts a web application there. When a researcher with an active Jupyter session visits the attacker's site, JavaScript code sends cross-origin API requests to the victim's Jupyter Server with Origin header 'http://research.university.edu.malicious-analytics.com'. The flawed re.match() validation sees the string starts with 'research.university.edu' and incorrectly approves the request, allowing the attacker's JavaScript to exfiltrate notebook contents, execute arbitrary code in the notebook kernel, or extract authentication tokens. No public POC is confirmed, but exploitation requires only basic web development skills and domain registration. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 05, 2026
Cross-Origin Resource Sharing (CORS) bypass in Jupyter Server <= 2.17.0 allows attackers controlling malicious subdomains to bypass origin validation and access sensitive notebook data. The vulnerability stems from incorrect use of Python's re.match() function in the allow_origin_pat configuration, which only anchors at the start of strings. An attacker registering a domain like 'trusted.example.com.evil.com' can pass validation intended only for 'trusted.example.com', enabling unauthorized cross-origin requests to Jupyter sessions. Fixed in version 2.18.0 via commits 057869a and 49b3439. No active exploitation or public POC identified at time of analysis.
RemediationAI
Upgrade Jupyter Server to version 2.18.0 or later, which replaces re.match() with proper anchoring via commits 057869a327c46730afede3eab0ca2d2e3e74acea and 49b34392feaa97735b3b777e3baf8f22f2a14ed8. Installation via pip: 'pip install --upgrade jupyter-server>=2.18.0'. If immediate patching is not feasible, apply the workaround by modifying your Jupyter Server configuration to wrap all allow_origin_pat values with regex anchors '^' at the start and '$' at the end (e.g., change 'trusted\.example\.com' to '^trusted\.example\.com$'). This workaround provides equivalent protection but requires manual configuration changes and testing to ensure legitimate origins still match. As a compensating control, review and minimize the scope of allow_origin_pat patterns to only absolutely necessary domains, or disable CORS entirely if cross-origin access is not required (noting this will break browser-based integrations requiring cross-origin requests). Full advisory and patch details: https://github.com/jupyter-server/jupyter_server/security/advisories/GHSA-24qx-w28j-9m6p and https://github.com/jupyter-server/jupyter_server/pull/603.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability (CWE-777: Regular Expression without Anchors) exploits a common regex antipattern in Python. Jupyter Server's CORS origin validation uses re.match() to check incoming Origin headers against the allow_origin_pat configuration pattern. Python's re.match() implicitly anchors only at the beginning of the string (equivalent to prepending '^' but not appending '$'). This means a pattern like 'trusted\.example\.com' will match both 'trusted.example.com' AND 'trusted.example.com.evil.com' because re.match() only verifies the start of the string. The correct approach is using re.fullmatch() (Python 3.4+) which anchors at both start and end, or manually wrapping patterns with '^pattern$'. The affected component is pkg:pip/jupyter-server, specifically the CORS validation middleware that processes HTTP Origin headers before allowing cross-origin API requests to notebook servers.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:L/SC:L/SI:L/SA:L
AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
Primary rating from Vendor (https://github.com/jupyter-server/jupyter_server).
CVSS VectorVendor: https://github.com/jupyter-server/jupyter_server
Lifecycle Timeline
1DescriptionCVE.org
Jupyter Server uses re.match() to validate the Origin header against the allow_origin_pat configuration.
Since re.match() only anchors at the start of the string, an attacker who controls a domain like http://trusted.example.com.evil.com/ passes validation against a pattern intended to match only trusted.example.com.
Impact
<=2.17.0
Patches
057869a327c46730afede3eab0ca2d2e3e74acea, 49b34392feaa97735b3b777e3baf8f22f2a14ed8
Workarounds
Wrap your allow_origin_pat value with ^ and $
References
https://github.com/jupyter-server/jupyter_server/pull/603 https://docs.python.org/3/library/re.html#re.fullmatch https://docs.python.org/3/library/re.html#re.match
Executive ViewAI
Jupyter Server versions up to 2.17.0 contain a CORS bypass vulnerability that allows attackers controlling malicious subdomains to access sensitive notebook data through origin validation bypass. Organizations running affected Jupyter deployments face unauthorized data exfiltration risk, particularly if instances are internet-facing or accessible across trust boundaries. This affects any team relying on Jupyter for sensitive analytical, research, or development work.
If immediate upgrade to version 2.18.0 is not feasible: (1) Restrict network access to Jupyter Server instances to trusted internal networks only, blocking direct internet exposure; (2) Implement Web Application Firewall rules to reject requests with suspicious Origin headers containing subdomain chains of legitimate domains; (3) Disable cross-origin requests entirely if not required by applications using allow_origin_pat = ''; (4) Implement network segmentation to isolate Jupyter instances from other systems until patching. Apply vendor patch (version 2.18.0) as primary remediation.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
Same weakness CWE-777 – Regular Expression without Anchors
View allSame technique Information Disclosure
View allVendor StatusVendor
SUSE
Severity: High| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
EUVD-2026-27510
GHSA-24qx-w28j-9m6p
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB