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.

Severity (CVSS)

Base score8.2
SeverityHigh
VersionCVSS 4.0
VectorCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Provided byCNA

Weaknesses

  • CWE-22 — Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Affected products

VendorProductVersions
jupyternbviewer0 to <=1.0.1

References

Authoritative sources

This page is a snapshot. For the latest enrichment and updates, view the record on CVE.org or the NVD.

Generated from the official CVE List on 07 Sep 2026 07:02 UTC.