The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-40110

CVE-2026-40110: Jupyter Server Auth Bypass Vulnerability

CVE-2026-40110 is an authentication bypass flaw in Jupyter Server that allows attackers to circumvent CORS origin restrictions through regex pattern matching issues. This article covers technical details, affected versions, and mitigation.

Published: May 7, 2026

CVE-2026-40110 Overview

CVE-2026-40110 is a Cross-Origin Resource Sharing (CORS) origin validation bypass in Jupyter Server, the backend that powers Jupyter web applications. Versions 2.17.0 and earlier validate the Origin header using Python's re.match() against the allow_origin_pat configuration value. Because re.match() only anchors at the start of the string, an origin like trusted.example.com.evil.com matches a pattern intended for trusted.example.com. An attacker controlling such a lookalike domain can issue cross-origin requests against the Jupyter Server API from an untrusted site. The issue is fixed in version 2.18.0 and tracked under [CWE-777].

Critical Impact

Successful exploitation lets an attacker-controlled origin bypass CORS restrictions and interact with the Jupyter Server API, exposing notebook content and execution capabilities to cross-site requests.

Affected Products

  • Jupyter Server versions 2.17.0 and earlier
  • Jupyter web applications relying on allow_origin_pat for CORS enforcement
  • Deployments using regex-based origin allow-listing in jupyter_server.base.handlers

Discovery Timeline

  • 2026-05-05 - CVE-2026-40110 published to NVD
  • 2026-05-07 - Last updated in NVD database

Technical Details for CVE-2026-40110

Vulnerability Analysis

Jupyter Server uses allow_origin_pat, a regular expression, to decide which cross-origin requests are permitted. The pre-patch implementation passed this pattern to re.match(), which only requires a match at the beginning of the input string. As a result, any origin whose prefix matches the configured pattern is accepted, regardless of trailing characters. An operator who configures allow_origin_pat = r"trusted\.example\.com" to permit only that host inadvertently also permits trusted.example.com.attacker.tld, trusted.example.com.evil.com, or any other suffix-extended domain an adversary can register. The flaw is classified under [CWE-777] (Regular Expression without Anchors).

Root Cause

The root cause is the difference between re.match() and re.fullmatch() in Python's standard library. re.match() anchors only at the start of the string; it does not validate that the pattern consumes the entire input. CORS origin checks require full-string equivalence to be safe. Using a non-anchored match against attacker-controlled input collapses the trust boundary the configuration was meant to enforce.

Attack Vector

The attack is network-based and requires user interaction. An attacker registers a domain whose name begins with a string that satisfies the victim's allow_origin_pat regex. The attacker hosts a malicious page and entices an authenticated Jupyter user to visit it. The page issues cross-origin requests to the user's Jupyter Server. The server's CORS check accepts the spoofed Origin header, returning sensitive data and allowing API operations that would otherwise be blocked.

python
# Pre-patch (vulnerable) check in jupyter_server/base/handlers.py
if self.allow_origin:
    allow = self.allow_origin == origin
elif self.allow_origin_pat:
    allow = bool(re.match(self.allow_origin_pat, origin))

# Post-patch fix introduced in version 2.18.0
def _origin_matches_pat(self, origin: str) -> bool:
    if not self.allow_origin_pat:
        return False
    if re.fullmatch(self.allow_origin_pat, origin):
        return True
    if re.match(self.allow_origin_pat, origin):
        warnings.warn(
            f"allow_origin_pat {self.allow_origin_pat!r} only matched the request origin as a prefix. "
            "This has been replaced with a full string match. "
            "Update your pattern if you need to prefix-match the origin (e.g. append '.*')",
            UserWarning,
            stacklevel=2,
        )
    return False

Source: jupyter-server commit 057869a

Detection Methods for CVE-2026-40110

Indicators of Compromise

  • HTTP requests to Jupyter Server endpoints carrying an Origin header that begins with a trusted domain but contains additional trailing labels (for example, trusted.example.com.evil.com).
  • Outbound responses with Access-Control-Allow-Origin echoing unexpected suffix-extended domains.
  • Authenticated Jupyter API calls (/api/contents, /api/sessions, /api/kernels) initiated from referrers outside the deployment's known browser origins.

Detection Strategies

  • Inspect access logs for Origin header values that include a trusted hostname followed by an additional . and label, then verify against the registered allow_origin_pat.
  • Replay logged origins through re.fullmatch() to identify entries that match re.match() but fail re.fullmatch(). These represent prior bypass attempts.
  • Correlate authenticated session activity with browser origins; flag kernel execution requests originating from domains not present in the operator's allow-list.

Monitoring Recommendations

  • Alert on responses where Access-Control-Allow-Origin is set to a value other than the canonical trusted domains.
  • Monitor for newly registered lookalike domains that share a prefix with internal Jupyter hostnames.
  • Capture Jupyter Server warning logs for the new UserWarning emitted by _origin_matches_pat after upgrading; these identify misconfigured patterns that previously allowed bypasses.

How to Mitigate CVE-2026-40110

Immediate Actions Required

  • Upgrade Jupyter Server to version 2.18.0 or later, which replaces re.match() with re.fullmatch() for origin validation.
  • Audit existing allow_origin_pat configuration values and ensure each pattern fully describes the allowed origin, including the scheme and end-of-string anchor.
  • Restrict Jupyter Server network exposure so that only trusted browser origins can reach the API while patches are rolled out.

Patch Information

The fix is delivered in Jupyter Server 2.18.0 via GitHub Pull Request 603 and commits 057869a and 49b3439. The patch introduces an origin_matches_pat utility, applies it across HTTP and websocket handlers, and emits a UserWarning when an existing pattern only matched as a prefix. See the GitHub Security Advisory GHSA-24qx-w28j-9m6p for the full advisory.

Workarounds

  • Set allow_origin to the exact trusted origin string instead of using allow_origin_pat, which forces a literal equality check.
  • If allow_origin_pat is required, anchor patterns explicitly using \Z or $ (for example, r"https://trusted\.example\.com\Z") to prevent suffix-extension matches.
  • Place Jupyter Server behind a reverse proxy that strips or validates the Origin header before requests reach the application.
bash
# Upgrade Jupyter Server to the patched release
pip install --upgrade "jupyter_server>=2.18.0"

# Verify the installed version
python -c "import jupyter_server; print(jupyter_server.__version__)"

# Example of a safely anchored allow_origin_pat in jupyter_server_config.py
# c.ServerApp.allow_origin_pat = r"https://([a-z0-9-]+\.)?trusted\.example\.com\Z"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechJupyter

  • SeverityHIGH

  • CVSS Score7.6

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityLow
  • CWE References
  • CWE-777
  • Technical References
  • GitHub Commit Update

  • GitHub Commit Change

  • GitHub Pull Request 603

  • GitHub Security Advisory GHSA-24qx-w28j-9m6p
  • Related CVEs
  • CVE-2026-40934: Jupyter Server Auth Bypass Vulnerability

  • CVE-2024-28179: Jupyter Server Proxy Auth Bypass Flaw

  • CVE-2026-40171: Jupyter Notebook XSS Vulnerability

  • CVE-2026-39377: Jupyter Nbconvert Path Traversal Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English