{"id":"CVE-2026-5422","aliases":["CVE-2026-5422","GHSA-gf7q-q4j7-hp7c","PYSEC-2026-2532"],"related":[],"kind":"vulnerability","state":"published","title":"Path Traversal in jupyter/jupyter","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-5789-5fc7-67v3. This link is maintained to preserve external references.\n\n### Original Description\nA 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una vulnerabilidad de salto de ruta existe en jupyter-server versión 2.17.0 debido a una comprobación incorrecta del límite del directorio raíz en la función _get_os_path() dentro de jupyter_server/services/contents/fileio.py. La comprobación utiliza startswith(root) sin añadir un separador de ruta final, lo que permite que directorios hermanos con nombres que comienzan con el mismo prefijo que root_dir eludan la comprobación. Además, la función to_os_path() en utils.py no elimina '..' de las partes de la ruta, lo que permite que las secuencias de salto eludan la comprobación vulnerable. Esta vulnerabilidad puede conducir a acceso de lectura/escritura no autorizado a archivos en directorios hermanos, exponiendo potencialmente datos sensibles en entornos de alojamiento compartido.","source":"nvd"}],"published":"2026-06-02T09:11:15.755Z","modified":"2026-07-31T20:30:22.001Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-23"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"latest","status":"affected"}],"vendor":"jupyter","product":"jupyter/jupyter","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.18.2"}],"ecosystem":"PyPI","package":"jupyter-server","purl":"pkg:pypi/jupyter-server","source":"ghsa"},{"ranges":[{"status":"affected","version":"2.17.0"}],"vendor":"jupyter","product":"jupyter_server","cpe":"cpe:2.3:a:jupyter:jupyter_server:2.17.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.18.2"}],"ecosystem":"PyPI","package":"jupyter-server","purl":"pkg:pypi/jupyter-server","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/24a36953-6490-466f-8cb2-a90d1ca56e0f","tags":["exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5422","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-gf7q-q4j7-hp7c","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/jupyter-server/jupyter_server","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/jupyter-server/PYSEC-2026-2532.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/jupyter-server","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"http://github.com/jupyter-server/jupyter_server/commit/0d829f2c35a481c3b24ecbe1e25a6f79954e88f2","tags":["web"],"sources":["ghsa","pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-06-02T12:13:38.058Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-5422","url":"https://www.cve.org/CVERecord?id=CVE-2026-5422","licence":"CVE Terms of Use","modified":"2026-06-02T12:14:02.747Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gf7q-q4j7-hp7c","url":"https://github.com/advisories/GHSA-gf7q-q4j7-hp7c","licence":"CC-BY-4.0","modified":"2026-07-31T20:30:22.001Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-5422","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5422","licence":"Public domain","modified":"2026-07-22T19:10:00.120Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2532","url":"https://osv.dev/vulnerability/PYSEC-2026-2532","licence":"CC-BY-4.0","modified":"2026-07-13T16:31:58.966Z"}],"updatedAt":"2026-11-25T22:59:23.557Z","epss":{"score":0.04858,"percentile":0.92225,"date":"2026-12-01T12:00:22.000Z"}}