{"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-5422 exists.","fix":"Upgrade jupyter-server to 2.18.2 or later.","what":"CVE-2026-5422 is a medium-severity path traversal vulnerability in jupyter/jupyter, published on 2 Jun 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-5422 and fix it if it is affected.\n\nWhat it is: CVE-2026-5422 is a medium-severity path traversal vulnerability in jupyter/jupyter, published on 2 Jun 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-5422 exists.\n\nAffected packages and fixed versions:\n- jupyter-server (PyPI): affected all versions; fixed in 2.18.2\n- jupyter-server (PyPI): affected all versions; fixed in 2.18.2\n- jupyter-server (PyPI): affected all versions; fixed in 2.18.2\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-5422/ (Markdown: https://insights.sbomify.com/CVE-2026-5422/index.md)","id":"CVE-2026-5422","markdown":"https://insights.sbomify.com/CVE-2026-5422/index.md","name":"CVE-2026-5422","record":{"aliases":["DEBIAN-CVE-2026-5422","GHSA-gf7q-q4j7-hp7c","PYSEC-2026-2532","UBUNTU-CVE-2026-5422","openSUSE-SU-2026:10972-1"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Jupyter server","requires_auth":"low_privilege","summary":"Attackers can bypass directory restrictions to read or modify files in sibling directories, exposing sensitive data in shared environments.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[{"product":"jupyter_server","vendor":"jupyter"}],"cvss":{"score":6.8,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.0"},"cwes":[{"id":"CWE-23","name":"Relative Path Traversal"}],"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.","ecosystems":["PyPI","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Path Traversal in jupyter/jupyter","id":"CVE-2026-5422","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":4,"n_references":1,"next":{"headline":"Subscription Authentication Bypass via Unverified connectionParams.jwt","id":"CVE-2026-5423"},"packages":[{"ecosystem":"PyPI","fixed":["2.18.2"],"introduced":["0"],"last_affected":[],"package":"jupyter-server","purl":null,"source":"GHSA-gf7q-q4j7-hp7c"},{"ecosystem":"PyPI","fixed":["2.18.2"],"introduced":["0"],"last_affected":[],"package":"jupyter-server","purl":"pkg:pypi/jupyter-server","source":"GHSA-gf7q-q4j7-hp7c"},{"ecosystem":"PyPI","fixed":["2.18.2"],"introduced":["0"],"last_affected":[],"package":"jupyter-server","purl":"pkg:pypi/jupyter-server","source":"PYSEC-2026-2532"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.19.0-1.1"],"introduced":["0"],"last_affected":[],"package":"python-jupyter-server","purl":"pkg:rpm/opensuse/python-jupyter-server\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10972-1"}],"prev":{"headline":"Shinrays Games Goods Triple App cats.goods.sort.sorting.games jRwTX.java hard-coded key","id":"CVE-2026-5420"},"products":["jupyter/jupyter"],"published":"2026-06-02","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 path traversal allows access to sibling directories sharing root_dir name prefix","id":"CVE-2026-35397","kev_date_added":null,"published":"2026-05-05"},{"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":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-06-02","vendors":["jupyter"]},"summary":"Attackers can bypass directory restrictions to read or modify files in sibling directories, exposing sensitive data in shared environments.","url":"https://insights.sbomify.com/CVE-2026-5422/"}