<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Jupyter Server (&lt;= 2.17.0) — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/jupyter-server--2.17.0/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata — refreshed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Tue, 05 May 2026 16:49:10 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/jupyter-server--2.17.0/feed.xml" rel="self" type="application/rss+xml"/><item><title>Jupyter Server Path Traversal Vulnerability</title><link>https://feed.craftedsignal.io/briefs/2024-01-jupyter-path-traversal/</link><pubDate>Tue, 05 May 2026 16:49:10 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-jupyter-path-traversal/</guid><description>Jupyter Server version 2.17.0 and earlier is vulnerable to a path traversal vulnerability due to an insufficient check on the root directory, allowing an authenticated user to access, read, write, and delete content outside the server's root directory in sibling directories that share the same prefix as the root directory, potentially leading to privilege escalation in multi-tenant environments.</description><content:encoded><![CDATA[<p>Jupyter Server, a widely used platform for interactive computing, has a path traversal vulnerability affecting versions 2.17.0 and earlier. This flaw stems from an inadequate <code>startswith()</code> check on the root directory, which fails to properly restrict access to sibling directories. An authenticated user can exploit this by crafting specific API requests to access content outside of the designated <code>root_dir</code>. This vulnerability is especially dangerous in multi-tenant server deployments using predictable naming schemes, such as <code>user1</code>, <code>user2</code>, etc., where one user could potentially access and modify files belonging to other users. The vulnerability was reported on May 5, 2026, and is identified as CVE-2026-35397. Defenders should prioritize patching and consider workarounds to prevent unauthorized access to sensitive data.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An authenticated user logs into a vulnerable Jupyter Server instance.</li>
<li>The attacker identifies the <code>root_dir</code> of their Jupyter environment.</li>
<li>The attacker identifies a sibling directory that shares a prefix with the <code>root_dir</code> (e.g., if <code>root_dir</code> is <code>test</code>, a sibling directory might be <code>testtest</code>).</li>
<li>The attacker crafts a POST request to the <code>/api/contents/</code> endpoint, using a path traversal sequence (<code>%2e%2e/</code>) followed by the sibling directory and the target file. For example: <code>/api/contents/%2e%2e/testtest/secret.txt/checkpoints</code>.</li>
<li>The Jupyter Server&rsquo;s insufficient <code>startswith()</code> check allows the request to proceed without proper validation.</li>
<li>The attacker gains unauthorized access to the target file within the sibling directory.</li>
<li>The attacker can then read, write, or delete the accessed file, potentially escalating privileges or compromising sensitive data.</li>
<li>The attacker leverages this access to compromise other user accounts or the Jupyter Server instance.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this vulnerability allows an attacker to read, write, and delete files in directories sibling to the Jupyter Server&rsquo;s <code>root_dir</code>. This can lead to privilege escalation, especially in multi-tenant environments. For instance, in systems with predictable naming schemes like <code>user1</code>, <code>user2</code>, &hellip;, <code>user10</code>, an attacker with access to <code>user1</code> could modify files belonging to <code>user10</code> - <code>user19</code>. The severity of this issue is heightened in scenarios where users can choose their folder names, as an attacker selecting a single-letter username could potentially compromise a significant number of sibling directories.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade to Jupyter Server version 2.17.1 or later to patch CVE-2026-35397.</li>
<li>Implement stricter validation and sanitization of user inputs, specifically for file paths, to prevent path traversal attacks.</li>
<li>Deploy the Sigma rule &ldquo;Detect Jupyter Server Path Traversal Attempt&rdquo; to monitor for suspicious API requests containing path traversal sequences.</li>
<li>Review and revise folder naming schemes to avoid overlapping names in multi-tenant environments, as suggested in the advisory workaround.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>path-traversal</category><category>privilege-escalation</category><category>jupyter</category></item><item><title>Jupyter Server CORS Origin Validation Bypass via Regex</title><link>https://feed.craftedsignal.io/briefs/2024-01-jupyter-cors-bypass/</link><pubDate>Wed, 03 Jan 2024 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-jupyter-cors-bypass/</guid><description>Jupyter Server versions 2.17.0 and earlier are vulnerable to a CORS origin validation bypass due to improper use of `re.match()` in validating the Origin header against the `allow_origin_pat` configuration, allowing attackers to bypass CORS restrictions.</description><content:encoded><![CDATA[<p>Jupyter Server, a web-based interactive development environment, is susceptible to a CORS (Cross-Origin Resource Sharing) bypass vulnerability. This flaw arises from the server&rsquo;s reliance on the <code>re.match()</code> function in Python&rsquo;s regular expression library for validating the <code>Origin</code> header against the configured <code>allow_origin_pat</code>. The <code>re.match()</code> function, unlike <code>re.fullmatch()</code>, only anchors the regex at the beginning of the string, not the end. Consequently, an attacker can craft a malicious domain, such as <code>http://trusted.example.com.evil.com/</code>, which will pass the regex validation if the <code>allow_origin_pat</code> is intended to match <code>trusted.example.com</code>. This vulnerability impacts Jupyter Server versions 2.17.0 and prior. The fix was implemented in pull request #603 and patched in commits 057869a327c46730afede3eab0ca2d2e3e74acea and 49b34392feaa97735b3b777e3baf8f22f2a14ed8. Successful exploitation allows an attacker to bypass CORS restrictions, potentially leading to unauthorized data access or actions on behalf of legitimate users.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker identifies a Jupyter Server instance running version 2.17.0 or earlier.</li>
<li>The attacker crafts a malicious website with a domain name designed to bypass the <code>allow_origin_pat</code> regex. For instance, if the intended origin is <code>trusted.example.com</code>, the attacker uses <code>trusted.example.com.evil.com</code>.</li>
<li>A victim user visits the attacker&rsquo;s malicious website in their browser.</li>
<li>The malicious website sends a cross-origin HTTP request to the vulnerable Jupyter Server. The <code>Origin</code> header in the request is set to the attacker-controlled domain (<code>trusted.example.com.evil.com</code>).</li>
<li>The Jupyter Server receives the request and validates the <code>Origin</code> header against the <code>allow_origin_pat</code> configuration using <code>re.match()</code>.</li>
<li>Due to the behavior of <code>re.match()</code>, the attacker&rsquo;s origin passes the validation, as the regex only checks for a match at the beginning of the string.</li>
<li>The Jupyter Server processes the cross-origin request, effectively bypassing the intended CORS restrictions.</li>
<li>The attacker can then potentially perform unauthorized actions or access sensitive data within the Jupyter Server, as if the request originated from a trusted source.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this vulnerability allows attackers to bypass CORS restrictions on vulnerable Jupyter Server instances. This could lead to unauthorized access to sensitive data, modification of user settings, or execution of arbitrary code within the Jupyter environment, all performed under the guise of a legitimate user. The number of affected instances depends on the prevalence of vulnerable Jupyter Server versions and the use of misconfigured <code>allow_origin_pat</code> settings.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade Jupyter Server to a version greater than 2.17.0, which includes the fix for CVE-2026-40110.</li>
<li>As a workaround, wrap your <code>allow_origin_pat</code> configuration value with <code>^</code> and <code>$</code> to ensure the regex matches the entire string, as suggested in the advisory.</li>
<li>Monitor web server logs for requests with <code>Origin</code> headers matching the pattern <code>trusted.example.com.*</code> (adjusting the <code>trusted.example.com</code> to your actual configured pattern) to detect potential exploitation attempts. Implement this detection using the provided Sigma rule targeting webserver logs.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>cors</category><category>origin-validation</category><category>regex</category><category>web-application</category></item></channel></rss>