5.9Medium

CVE-2026-86258nbviewer through 1.0.1 Path Traversal via LocalFileHandler

jupyter nbviewer Published: (2 months ago)

Description

nbviewer through 1.0.1 contains a path traversal vulnerability in LocalFileHandler.can_show() that uses string-prefix comparison instead of proper path validation. Attackers can read files from sibling directories outside the configured root by requesting paths that share the root as a textual prefix, disclosing unintended notebooks and credentials.

Weakness (CWE): CWE-22

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
jupyter nbviewer ≤ 1.0.1

References and patches