CVE-2026-6657: CWE-346 Origin Validation Error in jupyter jupyter/jupyter
CVE-2026-6657 is a medium severity vulnerability in jupyter-server versions 1.12.0 through 2.17.0 that allows bypassing of CORS origin validation when the allow_origin_pat configuration is used. The issue stems from improper use of re.match() for Origin header validation, which only anchors at the start of the string, enabling attacker-controlled domains that mimic trusted domains to bypass checks. This affects multiple code locations including CORS headers, WebSocket connections, referer validation, and login redirects, potentially leading to phishing, unauthorized access, and arbitrary code execution.
AI Analysis
Technical Summary
This vulnerability in jupyter-server arises because the allow_origin_pat configuration uses Python's re.match() function to validate the Origin header, which only anchors at the start of the string. Consequently, domains such as trusted.example.com.evil.com can bypass origin validation intended to restrict access to trusted.example.com. The flaw affects various components including CORS headers, WebSocket connections, referer validation, and login redirects. Exploitation could enable attackers to perform phishing attacks, gain unauthorized access to sensitive API responses, and potentially execute arbitrary code. The vulnerability impacts versions 1.12.0 through 2.17.0 of jupyter-server. No official patch or remediation level has been published yet, and no known exploits are reported in the wild.
Potential Impact
An attacker can bypass CORS origin validation, which may allow unauthorized cross-origin requests to the jupyter-server. This can lead to phishing attacks, unauthorized access to sensitive API responses, and potentially arbitrary code execution. The vulnerability compromises the integrity of origin validation mechanisms across multiple components, increasing the risk of unauthorized data exposure and control.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should avoid using the allow_origin_pat configuration or apply strict manual validation of allowed origins. Monitor official jupyter advisories for updates and patches addressing this issue.
CVE-2026-6657: CWE-346 Origin Validation Error in jupyter jupyter/jupyter
Description
CVE-2026-6657 is a medium severity vulnerability in jupyter-server versions 1.12.0 through 2.17.0 that allows bypassing of CORS origin validation when the allow_origin_pat configuration is used. The issue stems from improper use of re.match() for Origin header validation, which only anchors at the start of the string, enabling attacker-controlled domains that mimic trusted domains to bypass checks. This affects multiple code locations including CORS headers, WebSocket connections, referer validation, and login redirects, potentially leading to phishing, unauthorized access, and arbitrary code execution.
CVSS v3.0
Score 6.1medium
Affected software
jupyter
jupyter/jupyter
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in jupyter-server arises because the allow_origin_pat configuration uses Python's re.match() function to validate the Origin header, which only anchors at the start of the string. Consequently, domains such as trusted.example.com.evil.com can bypass origin validation intended to restrict access to trusted.example.com. The flaw affects various components including CORS headers, WebSocket connections, referer validation, and login redirects. Exploitation could enable attackers to perform phishing attacks, gain unauthorized access to sensitive API responses, and potentially execute arbitrary code. The vulnerability impacts versions 1.12.0 through 2.17.0 of jupyter-server. No official patch or remediation level has been published yet, and no known exploits are reported in the wild.
Potential Impact
An attacker can bypass CORS origin validation, which may allow unauthorized cross-origin requests to the jupyter-server. This can lead to phishing attacks, unauthorized access to sensitive API responses, and potentially arbitrary code execution. The vulnerability compromises the integrity of origin validation mechanisms across multiple components, increasing the risk of unauthorized data exposure and control.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should avoid using the allow_origin_pat configuration or apply strict manual validation of allowed origins. Monitor official jupyter advisories for updates and patches addressing this issue.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- @huntr_ai
- Date Reserved
- 2026-04-20T08:13:54.544Z
- Cvss Version
- 3.0
- State
- PUBLISHED
Threat ID: 6a204ceae29bf47b50ca1282
Added to database: 06/03/2026, 15:48:58 UTC
Last enriched: 08/01/2026, 21:31:04 UTC
Last updated: 09/10/2026, 20:54:08 UTC
Views: 180
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.