CVE-2026-40110 — Vulnerability in jupyter-server — CVE Details
Jupyter Server has a CORS Origin Validation Bypass via `re.match()` in `allow_origin_pat`
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.47%). Schedule for your next planned update.
Does your project use an affected jupyter-server version?
Paste your requirements.txt to check it for CVE-2026-40110 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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
Advisory Timeline
- First published May 5, 2026 (205 days ago).
- Last revised September 10, 2026 — 127 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "jupyter-server>=2.18.0"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: PyPI (1).
| Package | Fixed In |
|---|---|
| jupyter-server PyPI · Affected: 0.0.0, 0.0.1, 0.0.2, 0.0.3 (+151 more) | 2.18.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-625
- CWE-777
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.2 score means for each attack dimension.
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
References
- https://github.com/jupyter-server/jupyter_server/security/advisories/GHSA-24qx-w28j-9m6pWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-40110ADVISORY
- https://github.com/jupyter-server/jupyter_server/pull/603WEB
- https://github.com/jupyter-server/jupyter_server/commit/057869a327c46730afede3eab0ca2d2e3e74aceaWEB
- https://github.com/jupyter-server/jupyter_server/commit/49b34392feaa97735b3b777e3baf8f22f2a14ed8WEB
- https://access.redhat.com/errata/RHSA-2026:43038WEB
- https://access.redhat.com/security/cve/CVE-2026-40110WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=2466912WEB
- https://github.com/jupyter-server/jupyter_serverPACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/jupyter-server/PYSEC-2026-2187.yamlWEB
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40110.jsonWEB
Frequently Asked Questions
- What is CVE-2026-40110?
- Jupyter Server has a CORS Origin Validation Bypass via `re.match()` in `allow_origin_pat`. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.2/10).
- How do I check if my project is affected by CVE-2026-40110?
- CVE-2026-40110 affects jupyter-server. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-40110 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is a below-median EPSS score — only 32.8% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-128139HIGH
NLTK: XMLCorpusView comment and CDATA parsing permits quadratic CPU denial of service
- CVE-2026-129222HIGH
Natural Language Toolkit (NLTK): Uncontrolled recursion (crash DoS) in DependencyGraph.tree()/triples()