{"id":"CVE-2026-5422","state":"PUBLISHED","title":"Path Traversal in jupyter/jupyter","description":"A path traversal vulnerability exists in jupyter-server version 2.17.0 due to an incorrect root directory boundary check in the _get_os_path() function within jupyter_server/services/contents/fileio.py. The check uses startswith(root) without appending a trailing path separator, allowing sibling directories with names starting with the same prefix as root_dir to bypass the check. Additionally, the to_os_path() function in utils.py does not strip \"..\" from path parts, enabling traversal sequences to bypass the vulnerable check. This vulnerability can lead to unauthorized read/write access to files in sibling directories, potentially exposing sensitive data in shared hosting environments.","publishedAt":"2026-06-02T09:11:15.755Z","updatedAt":"2026-06-02T12:14:02.747Z","severity":{"score":6.8,"label":"Medium","version":"3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","source":"@huntr_ai"},"assigner":"@huntr_ai","products":["jupyter jupyter/jupyter"],"affected":[{"vendor":"jupyter","product":"jupyter/jupyter","versions":[{"version":"unspecified","status":"affected","lessThanOrEqual":"latest","versionType":"custom"}]}],"references":["https://huntr.com/bounties/24a36953-6490-466f-8cb2-a90d1ca56e0f"],"weaknesses":["CWE-23"],"ingestedAt":"2026-10-29T20:12:32.778Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/5xxx/CVE-2026-5422.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-5422","state":"PUBLISHED","datePublished":"2026-06-02T09:11:15.755Z","dateUpdated":"2026-06-02T12:14:02.747Z","assignerShortName":"@huntr_ai","assignerOrgId":"c09c270a-b464-47c1-9133-acb35b22c19a","dateReserved":"2026-04-02T12:44:03.302Z"},"containers":{"cna":{"title":"Path Traversal in jupyter/jupyter","descriptions":[{"lang":"en","value":"A path traversal vulnerability exists in jupyter-server version 2.17.0 due to an incorrect root directory boundary check in the _get_os_path() function within jupyter_server/services/contents/fileio.py. The check uses startswith(root) without appending a trailing path separator, allowing sibling directories with names starting with the same prefix as root_dir to bypass the check. Additionally, the to_os_path() function in utils.py does not strip \"..\" from path parts, enabling traversal sequences to bypass the vulnerable check. This vulnerability can lead to unauthorized read/write access to files in sibling directories, potentially exposing sensitive data in shared hosting environments."}],"affected":[{"vendor":"jupyter","product":"jupyter/jupyter","versions":[{"version":"unspecified","status":"affected","lessThanOrEqual":"latest","versionType":"custom"}]}],"references":[{"url":"https://huntr.com/bounties/24a36953-6490-466f-8cb2-a90d1ca56e0f"}],"metrics":[{"cvssV3_0":{"version":"3.0","attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","baseScore":6.8,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-23","type":"CWE","lang":"en","description":"CWE-23 Relative Path Traversal"}]}],"providerMetadata":{"shortName":"@huntr_ai","orgId":"c09c270a-b464-47c1-9133-acb35b22c19a","dateUpdated":"2026-06-02T09:11:15.755Z"},"source":{"advisory":"24a36953-6490-466f-8cb2-a90d1ca56e0f","discovery":"EXTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://huntr.com/bounties/24a36953-6490-466f-8cb2-a90d1ca56e0f","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-06-02T12:13:38.058844Z","id":"CVE-2026-5422","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-06-02T12:14:02.747Z"}}]}}}