{"id":"CVE-2026-6657","aliases":["CVE-2026-6657","GHSA-v42x-x7jp-845h","PYSEC-2026-3472"],"related":[],"kind":"vulnerability","state":"published","title":"CORS Origin Validation Bypass in jupyter-server","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-24qx-w28j-9m6p. This link is maintained to preserve external references.\n\n### Original Description\nA 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una vulnerabilidad en las versiones 1.12.0 a 2.17.0 de jupyter-server permite a un atacante eludir la validación de origen CORS cuando se utiliza la configuración 'allow_origin_pat'. El problema surge del uso de 're.match()' para validar el encabezado 'Origin', que solo se ancla al inicio de la cadena. Esto permite a dominios controlados por el atacante, como 'trusted.example.com.evil.com', pasar la validación contra patrones destinados a coincidir con 'trusted.example.com'. La vulnerabilidad afecta múltiples ubicaciones en la base de código, incluyendo encabezados CORS, conexiones WebSocket, validación de referer y redirecciones de inicio de sesión, lo que podría permitir ataques de phishing, ejecución de código arbitrario y acceso no autorizado a respuestas sensibles de la API.","source":"nvd"}],"published":"2026-06-03T15:06:56.598Z","modified":"2026-07-31T20:30:21.973Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-346"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"latest","status":"affected"}],"vendor":"jupyter","product":"jupyter/jupyter","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"1.12.0","status":"affected","lastAffected":"2.17.0"}],"ecosystem":"PyPI","package":"jupyter-server","purl":"pkg:pypi/jupyter-server","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.12.0","lastAffected":"2.17.0"}],"vendor":"jupyter","product":"jupyter_server","cpe":"cpe:2.3:a:jupyter:jupyter_server:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"1.12.0","status":"affected","lastAffected":"2.17.0"}],"ecosystem":"PyPI","package":"jupyter-server","purl":"pkg:pypi/jupyter-server","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/18f642db-3569-43b3-b58d-ff97be4b09d7","tags":["exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6657","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-v42x-x7jp-845h","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/jupyter-server/jupyter_server","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/jupyter-server/PYSEC-2026-3472.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/jupyter-server","tags":["package","web"],"sources":["ghsa","pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-06-03T17:24:16.863Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-6657","url":"https://www.cve.org/CVERecord?id=CVE-2026-6657","licence":"CVE Terms of Use","modified":"2026-06-03T17:25:20.310Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v42x-x7jp-845h","url":"https://github.com/advisories/GHSA-v42x-x7jp-845h","licence":"CC-BY-4.0","modified":"2026-07-31T20:30:21.973Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-6657","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6657","licence":"Public domain","modified":"2026-07-21T19:10:00.107Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3472","url":"https://osv.dev/vulnerability/PYSEC-2026-3472","licence":"CC-BY-4.0","modified":"2026-07-23T15:00:15.106Z"}],"updatedAt":"2026-11-25T22:59:23.640Z","epss":{"score":0.05213,"percentile":0.92675,"date":"2026-12-01T12:00:22.000Z"}}