{"answers":{"affected":"3 open source packages ship an affected version, including jupyter-server. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-35397 exists.","fix":"Upgrade jupyter-server to 2.18.0 or later.","what":"CVE-2026-35397 is a high-severity path traversal vulnerability in jupyter-server jupyter_server, published on 5 May 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-35397 and fix it if it is affected.\n\nWhat it is: CVE-2026-35397 is a high-severity path traversal vulnerability in jupyter-server jupyter_server, published on 5 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-35397 exists.\n\nAffected packages and fixed versions:\n- jupyter-server (PyPI): affected all versions; fixed in 2.18.0\n- jupyter-server (PyPI): affected all versions; fixed in 2.18.0\n- jupyter-server (PyPI): affected all versions; fixed in 2.18.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-35397/ (Markdown: https://insights.sbomify.com/CVE-2026-35397/index.md)","id":"CVE-2026-35397","markdown":"https://insights.sbomify.com/CVE-2026-35397/index.md","name":"CVE-2026-35397","record":{"aliases":["CLEANSTART-2026-BF97060","CLEANSTART-2026-UA81846","DEBIAN-CVE-2026-35397","GHSA-5789-5fc7-67v3","PYSEC-2026-68","UBUNTU-CVE-2026-35397"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Jupyter Server","requires_auth":"low_privilege","summary":"Authenticated users can escape the configured root directory to read, write, and delete files in sibling directories sharing a name prefix.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"jupyter_server","vendor":"jupyter"}],"cvss":{"score":7.6,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Jupyter Server is the backend for Jupyter web applications. In versions 2.17.0 and earlier, a path traversal vulnerability in the REST API allows an authenticated user to escape the configured root_dir and access sibling directories whose names begin with the same prefix as the root_dir. For example, with a root_dir named \"test\", the API permits access to a sibling directory named \"testtest\" through a crafted request to the /api/contents endpoint using encoded path components. An attacker can read, write, and delete files in affected sibling directories. Multi-tenant deployments using predictable naming schemes are particularly at risk, as a user with a directory named \"user1\" could access directories for user10 through user19 and beyond. A user who can choose a single-character folder name could gain access to a significant number of sibling directories. \n\nVersion 2.18.0 contains a fix. As a workaround, ensure folder names do not share a common prefix with any sibling directory.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2026-05-08","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-05-08T14:22:52Z","kind":"github_poc","ref":"https://github.com/HiteshGorana/susvibes-jupyter-server-cve-2026-35397","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"jupyter-server path traversal allows access to sibling directories sharing root_dir name prefix","id":"CVE-2026-35397","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":1,"next":{"headline":"WeGIA - Open Redirect - OrigemControle - listarTodos() \u0026 listarId_Nome() - Unvalidated $_GET['nextPage']","id":"CVE-2026-35398"},"packages":[{"ecosystem":"PyPI","fixed":["2.18.0"],"introduced":["0"],"last_affected":[],"package":"jupyter-server","purl":null,"source":"GHSA-5789-5fc7-67v3"},{"ecosystem":"PyPI","fixed":["2.18.0"],"introduced":["0"],"last_affected":[],"package":"jupyter-server","purl":"pkg:pypi/jupyter-server","source":"GHSA-5789-5fc7-67v3"},{"ecosystem":"PyPI","fixed":["2.18.0"],"introduced":["0"],"last_affected":[],"package":"jupyter-server","purl":"pkg:pypi/jupyter-server","source":"PYSEC-2026-68"}],"prev":{"headline":"WeGIA - Open Redirect - IsaidaControle - listarId() - Unvalidated $_GET['nextPage']","id":"CVE-2026-35396"},"products":["jupyter_server"],"published":"2026-05-05","related":[{"cvss_score":9.3,"headline":"Jupyter Server: Stored XSS in `NbconvertFileHandler` / `NbconvertPostHandler` via missing `sandbox` CSP","id":"CVE-2026-44727","kev_date_added":null,"published":"2026-06-22"},{"cvss_score":7.6,"headline":"jupyter-server CORS origin validation bypass via unanchored regex in allow_origin_pat","id":"CVE-2026-40110","kev_date_added":null,"published":"2026-05-05"},{"cvss_score":7.6,"headline":"jupyter-server authentication cookies remain valid after password reset due to static cookie secret","id":"CVE-2026-40934","kev_date_added":null,"published":"2026-05-05"},{"cvss_score":7.5,"headline":"Jupyter server on Windows discloses Windows user password hash","id":"CVE-2024-35178","kev_date_added":null,"published":"2024-06-06"},{"cvss_score":7.5,"headline":"Sensitive Auth \u0026 Cookie data stored in Jupyter server logs","id":"CVE-2022-24757","kev_date_added":null,"published":"2022-03-23"},{"cvss_score":7.1,"headline":"Known or guessable hidden files may be accessed in Jupyter Server","id":"CVE-2022-29241","kev_date_added":null,"published":"2022-06-14"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-28","vendors":["jupyter-server"]},"summary":"Authenticated users can escape the configured root directory to read, write, and delete files in sibling directories sharing a name prefix.","url":"https://insights.sbomify.com/CVE-2026-35397/"}