CVE-2026-6657: CWE-346 Origin Validation Error in jupyter jupyter/jupyter
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.
AI Analysis
Technical Summary
The vulnerability in jupyter-server arises from the use of Python's re.match() function to validate the Origin header against allow_origin_pat patterns. Because re.match() anchors only at the start of the string, domains such as trusted.example.com.evil.com can bypass validation intended for trusted.example.com. This origin validation bypass affects CORS headers, WebSocket connections, referer validation, and login redirects, potentially enabling attackers to perform phishing attacks, gain unauthorized access to sensitive API responses, and execute arbitrary code. The vulnerability affects versions 1.12.0 through 2.17.0 of jupyter-server. The CVSS v3.0 score is 6.1 (medium severity), reflecting network attack vector, low attack complexity, no privileges required, user interaction required, scope changed, and low confidentiality and integrity impact. No vendor advisory or patch information is currently available.
Potential Impact
Successful exploitation can allow attackers to bypass CORS origin validation, leading to unauthorized access to sensitive API responses, phishing attacks, and potentially arbitrary code execution. The vulnerability affects multiple components handling origin validation, increasing the risk of unauthorized actions within affected jupyter-server instances.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should consider disabling or avoiding use of the allow_origin_pat configuration or apply additional manual validation controls if feasible. Monitor official jupyter project channels for updates and patches addressing this issue.
CVE-2026-6657: CWE-346 Origin Validation Error in jupyter jupyter/jupyter
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.
CVSS v3.0
Score 6.1medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in jupyter-server arises from the use of Python's re.match() function to validate the Origin header against allow_origin_pat patterns. Because re.match() anchors only at the start of the string, domains such as trusted.example.com.evil.com can bypass validation intended for trusted.example.com. This origin validation bypass affects CORS headers, WebSocket connections, referer validation, and login redirects, potentially enabling attackers to perform phishing attacks, gain unauthorized access to sensitive API responses, and execute arbitrary code. The vulnerability affects versions 1.12.0 through 2.17.0 of jupyter-server. The CVSS v3.0 score is 6.1 (medium severity), reflecting network attack vector, low attack complexity, no privileges required, user interaction required, scope changed, and low confidentiality and integrity impact. No vendor advisory or patch information is currently available.
Potential Impact
Successful exploitation can allow attackers to bypass CORS origin validation, leading to unauthorized access to sensitive API responses, phishing attacks, and potentially arbitrary code execution. The vulnerability affects multiple components handling origin validation, increasing the risk of unauthorized actions within affected jupyter-server instances.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should consider disabling or avoiding use of the allow_origin_pat configuration or apply additional manual validation controls if feasible. Monitor official jupyter project channels 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
- Remediation Level
- null
Threat ID: 6a204ceae29bf47b50ca1282
Added to database: 6/3/2026, 3:48:58 PM
Last enriched: 6/3/2026, 4:05:28 PM
Last updated: 6/4/2026, 5:00:41 AM
Views: 13
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.