# CVE-2026-40110: jupyter-server CORS origin validation bypass via unanchored regex in allow_origin_pat

- Severity: High 7.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-05-05T16:54:31.000Z
- Modified: 2026-09-10T03:50:45.011Z
- Also known as: GHSA-24qx-w28j-9m6p, PYSEC-2026-2187
- Weaknesses: CWE-625, CWE-777
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- jupyter-server jupyter_server: <= 2.17.0
- mta/mta-solution-server-rhel9: no versions given (not affected: from 1784109883 before *)
- rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9: no versions given
- jupyter-server (PyPI): before 2.18.0
- jupyter jupyter_server: before 2.18.0

## Every score

- GitHub_M: 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`
- redhat-SADP: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N`
- GitHub: CVSS:4.0 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`
- NVD: 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`
- PyPA Advisory Database: 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`

## References

- <https://github.com/jupyter-server/jupyter_server/security/advisories/GHSA-24qx-w28j-9m6p> (fix, mitigation, patch, vendor-advisory, web)
- <https://github.com/jupyter-server/jupyter_server/pull/603> (issue-tracking, report, web)
- <https://github.com/jupyter-server/jupyter_server/commit/057869a327c46730afede3eab0ca2d2e3e74acea> (fix, patch, web)
- <https://github.com/jupyter-server/jupyter_server/commit/49b34392feaa97735b3b777e3baf8f22f2a14ed8> (fix, patch, web)
- <https://access.redhat.com/security/cve/CVE-2026-40110> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2466912> (issue-tracking, report, web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40110.json> (web)
- <https://access.redhat.com/errata/RHSA-2026:43038> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40110> (advisory)
- <https://github.com/jupyter-server/jupyter_server> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/jupyter-server/PYSEC-2026-2187.yaml> (web)

## Sources

- CVE List: [CVE-2026-40110](https://www.cve.org/CVERecord?id=CVE-2026-40110), CVE Terms of Use, modified 2026-07-22
- GitHub Advisory Database: [GHSA-24qx-w28j-9m6p](https://github.com/advisories/GHSA-24qx-w28j-9m6p), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-40110](https://nvd.nist.gov/vuln/detail/CVE-2026-40110), Public domain, modified 2026-07-24
- PyPA Advisory Database: [PYSEC-2026-2187](https://osv.dev/vulnerability/PYSEC-2026-2187), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-40110 · Whole record: https://cve.day/CVE-2026-40110.json · Rebuilt by cve.day 2026-11-25T22:59:20.650Z
