CVE-2026-86258
Received Received - Intake

nbviewer Path Traversal Vulnerability Exposes Sensitive Files

Vulnerability report for CVE-2026-86258, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-06

Last updated on: 2026-09-06

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-06
Last Modified
2026-09-06
Generated
2026-09-06
AI Q&A
2026-09-06
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
jupyter nbviewer to 1.0.1 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a path traversal issue in nbviewer through version 1.0.1. The LocalFileHandler.can_show() function uses string-prefix comparison instead of proper path validation, allowing attackers to read files from sibling directories outside the configured root by crafting paths that share the root as a textual prefix.

Detection Guidance

To detect this vulnerability, check if your nbviewer instance is running version 1.0.1 or earlier. Inspect the LocalFileHandler.can_show() function in nbviewer/providers/local/handlers.py for improper path validation using string-prefix comparison instead of proper path containment checks.

Impact Analysis

Attackers could access unintended notebooks and potentially sensitive credentials stored in sibling directories. The impact is limited to sibling directories sharing the root directory as a string prefix, not arbitrary directory traversal like accessing system files.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive files, including credentials and notebooks, which may contain personal or confidential data. For GDPR, this could result in violations of data protection principles if personal data is exposed. For HIPAA, it may compromise protected health information if such data is stored in accessible files.

Mitigation Strategies

Upgrade nbviewer to a version that includes the fix for CVE-2026-86258. Ensure the LocalFileHandler.can_show() function uses proper path containment validation, such as os.path.commonpath or similar methods, to prevent path traversal attacks.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-86258. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart