cve.bz

CVE-2026-40110 jupyter jupyter server: Regular Expression without Anchors

7.6 highEPSS 0.3%Fix available

High (7.6) in jupyter jupyter server. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in jupyter-server 2.18.0.

On this page
Jupyter Server is the backend for Jupyter web applications. In versions 2.17.0 and earlier, the Origin header validation uses Python's re.match() to check incoming origins against the allow_origin_pat configuration value. Because re.match() only anchors at the start of the string and does not require a full match, a pattern intended to match only a trusted domain (e.g., trusted.example.com) will also match any origin that begins with that domain followed by additional characters (e.g., trusted.example.com.evil.com). An attacker who controls such a domain can bypass the CORS origin restriction and make cross-origin requests to the Jupyter Server API from an untrusted site. This issue has been fixed in version 2.18.0.

Severity

CVSS 4.0

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

CVSS 3.1

7.3 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 25th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-05-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-777 Regular Expression without Anchors
CWE-625 Permissive Regular Expression
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-40110 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40110?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40110?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40110 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
jupyter:jupyter_serverbefore 2.18.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-24qx-w28j-9m6pPyPIjupyter-server<2.18.02.18.0
PYSEC-2026-2187PyPIjupyter-server<2.18.02.18.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13jupyter-serverno fix listedDEBIAN-CVE-2026-40110
Debian14jupyter-server2.20.0-1DEBIAN-CVE-2026-40110
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 2 morejupyter-serverno fix listedUBUNTU-CVE-2026-40110
openSUSETumbleweedpython-jupyter-server2.18.1-1.1openSUSE-SU-2026:10710-1
Alpinev3.24jupyter-server2.18.2-r0ALPINE-CVE-2026-40110

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

Administrators should review and update the `allow_origin_pat` configuration in Jupyter Server to use a more precise regular expression. Ensure the pattern explicitly anchors to the end of the string (e.g., by adding `$` to the end of the regex) to prevent partial domain matches. After modifying the configuration, the Jupyter Server service must be restarted for the changes to take effect.

ProductPackageStateAdvisory
Red Hat Migration Toolkit for Applications 8.2mta/mta-solution-server-rhel9:1784109883Fixed 2026-07-21RHSA-2026:43038
Red Hat OpenShift AI 3.3rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9:1790331087Fixed 2026-09-30RHSA-2026:73987
Red Hat OpenShift AI 3.3rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9:1790260954Fixed 2026-09-30RHSA-2026:73987
Red Hat OpenShift AI 3.3rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9:1790072130Fixed 2026-09-30RHSA-2026:73987
Red Hat OpenShift AI 3.3rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9:1790072109Fixed 2026-09-30RHSA-2026:73987
Red Hat OpenShift AI 3.3rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9:1789651387Fixed 2026-09-30RHSA-2026:73987
Red Hat OpenShift AI 3.3rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9:1789651389Fixed 2026-09-30RHSA-2026:73987
Red Hat OpenShift AI 3.3rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9:1789651385Fixed 2026-09-30RHSA-2026:73987
Red Hat OpenShift AI 3.3rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9:1790077488Fixed 2026-09-30RHSA-2026:73987
Red Hat OpenShift AI 3.3rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9:1789983680Fixed 2026-09-30RHSA-2026:73987
Red Hat OpenShift AI 3.3rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9:1790260954Fixed 2026-09-30RHSA-2026:73987

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40110.

References

Check your stackJSON