Skip to main content

Jupyter Server EUVDEUVD-2026-27510

| CVE-2026-40110 HIGH
Regular Expression without Anchors (CWE-777)
2026-05-05 https://github.com/jupyter-server/jupyter_server GHSA-24qx-w28j-9m6p
7.6
CVSS 4.0 · Vendor: https://github.com/jupyter-server/jupyter_server
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Register domain matching trusted prefix
  2. Delivery
    Host malicious web app with CORS requests
  3. Exploit
    Victim visits attacker site with active Jupyter session
  4. Execution
    Send crafted Origin header bypassing re.match() validation
  5. Persist
    Access notebook API endpoints
  6. Impact
    Exfiltrate 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

jupyter_server ≤ 2.17.0

Affected Packages

pypi jupyter-server fix: 2.18.0

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

Vendor (https://github.com/jupyter-server/jupyter_server) PRIMARY 7.6 HIGH
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
SUSE 7.3 HIGH
AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
Red Hat 7.1 HIGH

Primary rating from Vendor (https://github.com/jupyter-server/jupyter_server).

CVSS VectorVendor: https://github.com/jupyter-server/jupyter_server

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
Low

Lifecycle Timeline

1
CVSS changed
May 05, 2026 - 22:22 NVD
7.6 (HIGH)

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 87% exploitable
Threat Intel
1
1 source
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

SUSE

Severity: High
Product Status
openSUSE Tumbleweed Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy