# CVE-2026-6657: CORS Origin Validation Bypass in jupyter-server

- Severity: Medium 6.1 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- 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): 5.21%, higher than 92% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-03T15:06:56.598Z
- Modified: 2026-07-31T20:30:21.973Z
- Also known as: GHSA-v42x-x7jp-845h, PYSEC-2026-3472
- Weaknesses: CWE-346
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## Description

A vulnerability in jupyter-server versions 1.12.0 through 2.17.0 allows an attacker to bypass CORS origin validation when the `allow_origin_pat` configuration is used. The issue arises from the use of `re.match()` for validating the `Origin` header, which only anchors at the start of the string. This allows attacker-controlled domains such as `trusted.example.com.evil.com` to pass validation against patterns intended to match `trusted.example.com`. The vulnerability affects multiple locations in the codebase, including CORS headers, WebSocket connections, referer validation, and login redirects, potentially enabling phishing attacks, arbitrary code execution, and unauthorized access to sensitive API responses.

(As written by CVE List.)

## Affected

- jupyter jupyter/jupyter: from unspecified up to latest
- jupyter-server (PyPI): from 1.12.0 up to 2.17.0
- jupyter jupyter_server: from 1.12.0 up to 2.17.0

## Every score

- @huntr_ai: CVSS:3.0 6.1 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.0 6.1 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.0 6.1 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://huntr.com/bounties/18f642db-3569-43b3-b58d-ff97be4b09d7> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6657> (advisory)
- <https://github.com/advisories/GHSA-v42x-x7jp-845h> (advisory)
- <https://github.com/jupyter-server/jupyter_server> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/jupyter-server/PYSEC-2026-3472.yaml> (web)
- <https://pypi.org/project/jupyter-server> (package, web)

## Sources

- CVE List: [CVE-2026-6657](https://www.cve.org/CVERecord?id=CVE-2026-6657), CVE Terms of Use, modified 2026-06-03
- GitHub Advisory Database: [GHSA-v42x-x7jp-845h](https://github.com/advisories/GHSA-v42x-x7jp-845h), CC-BY-4.0, modified 2026-07-31
- NVD: [CVE-2026-6657](https://nvd.nist.gov/vuln/detail/CVE-2026-6657), Public domain, modified 2026-07-21
- PyPA Advisory Database: [PYSEC-2026-3472](https://osv.dev/vulnerability/PYSEC-2026-3472), CC-BY-4.0, modified 2026-07-23

---

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